JavaScript doesn't use UTF8.  It  uses either ISO Latin 1 or UTF16BE.

From: LIHE [mailto:[email protected]]
Sent: Friday, February 25, 2011 4:28 AM
To: [email protected]
Subject: [iText-questions] Javascript in PDF with Russian

Anyone knows if JavaScript inside the PDF can handle russian texts ... i know 
it's a bit off topic, but I'm 
disappointed.[http://n4.nabble.com/images/smiley/anim_confused.gif] I've got a 
order button filling formfields with text, it works fine, but with russian 
texts, theres nothing entered... utf-8 problem ? can't javascript handle this, 
it there any option, work-around, .net code: "var f2 = getField('"FieldID"'); 
f2.value = '" & theText & "'" the fields use the calibri font, so basically 
should work (copy&paste works fine)
________________________________
View this message in context: Javascript in PDF with 
Russian<http://itext-general.2136553.n4.nabble.com/Javascript-in-PDF-with-Russian-tp3324115p3324115.html>
Sent from the iText - General mailing list 
archive<http://itext-general.2136553.n4.nabble.com/> at Nabble.com.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to