chinese post bug and generate pdf [message #36390] |
Wed, 21 March 2007 02:59 |
xinhaozheng
Messages: 4 Registered: March 2007
Karma: 0
|
Junior Member |
|
|
Well,it can post most of the chinese character correctly,but some of these character would be ???.Is it a bug?Maybe caust by fud_wordwrap() function.
second:generate chinese post to pdf but the reader can not display it in chinese though it can read other chinese pdf doc correctly.
|
|
|
|
|
|
|
|
|
|
Odp: chinese post bug and generate pdf [message #36584 is a reply to message #36390] |
Sun, 01 April 2007 11:13 |
kroku
Messages: 30 Registered: July 2006
Karma: 0
|
Member |
|
|
@Ilia
the only solution for such things is all languages (and posts) have to be converted to utf8 (i think its no problem) and at least one font with all Unicode symbols have to be embedded in forum installation (in adobe binary format)... Or include separate fonts for each used in different languages code-pages (Latin1, Latin2, iso-xxxx-xx, windows-xxxx, etc) corresponding to this languages.
unfortunately, current solution in forum makes almost impossible to add new fonts... I've tried to do this, no way
but when you include Unicode fonts in forum installation so they be able to be embedded also in pdf files, this solve problems with pdf in all languages different from English (English is very poor in signs, you used this to make pdf generator as small as possible, but it causes pdf generator is incompatible with almost all other languages. I hope you understand it at last)
I'm not good in English so i hope it is understandable
[Updated on: Sun, 01 April 2007 11:16] Report message to a moderator
|
|
|
Re: Odp: chinese post bug and generate pdf [message #36716 is a reply to message #36584] |
Sun, 01 April 2007 19:44 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Another option is to try and convert the text using iconv() to big-5 or similar encoding that perhaps is better interpreted by the included fonts.
FUDforum Core Developer
|
|
|
Odp: chinese post bug and generate pdf [message #36779 is a reply to message #36390] |
Mon, 09 April 2007 13:35 |
kroku
Messages: 30 Registered: July 2006
Karma: 0
|
Member |
|
|
It seems yes, but...
$txt = iconv("ISO-8859-2","ISO-8859-1",$txt);
doesn't save signs like ±êæñ¼¿ó³¡ÊÆѬ¯Ó£ (<- If you can't see them change browser settings to ISO-8859-2). This signs exists in ISO-8859-2 but they doesn't exists in ISO-8859-1 and Latin1 (I don't really know which is used by pdf generator) so it can't really work.
And the same about :
$txt = iconv("UTF-8","ISO-anything",$txt);
It may not work. It can't save all unicode symbols.
So the only solution is: pdf generator have to suupport UTF-8 because:
$txt = iconv("","UTF-8",$txt);
works always and keeps all symbols/signs, etc...
|
|
|