a7mdfm / alivepdf

Automatically exported from code.google.com/p/alivepdf
1 stars 0 forks source link

Unicode + addCell -> character are not encoded as UTF16 #174

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use UnicodePDF + ArialUnicodeMS( CidInfo.JAPANESE )
2. in addCell, pass an ascii 7 bits string (ie: "test")

What is the expected output? What do you see instead?

Instead of seing "test", you will see 'japanese' character.         

What version of the product are you using? On what operating system?

0.1.5.0 beta

Please provide any additional information below.

At line 2391, in addCell:

var txt2:String =
findAndReplace(')','\\)',findAndReplace('(','\\(',findAndReplace('\\','\\\\',tex
t)));

the text is not 'escape' using escapeIt.

replace it with 

var txt2:String = escapeIt(text);

seem to fix this problem.

Original issue reported on code.google.com by martin.m...@gmail.com on 2 Dec 2009 at 3:46

GoogleCodeExporter commented 8 years ago
Its really good help ,thanks

Original comment by jlkhiu9...@gmail.com on 5 Dec 2009 at 3:23

GoogleCodeExporter commented 8 years ago
Hi there,

Yes this fix was included in the latest SVN drop (0.1.5 RC).

Thanks for submitting it :)

Thibault

Original comment by thibault.imbert on 24 Jan 2010 at 11:34