Reputation: 538
i am facing one font problem, my website is to operate in five languages, one of them is german, so few characters like ü etc.are not getting displayed properly.
so for example, in english, i have one word "unhappy", in german it has to be displayed as "unglücklich",
actually i m still using Flex3.0, so when i receive this value from PHP end, i m getting it as mentioned in this image.., so "unhappy" text when it is getting displayed finally is worthless., can n e one plzz help me out, my website is almost finsihed, just few of these small problems is creating problem, Thank you very much in advance
Thank you
Ankur Sharma
Upvotes: 0
Views: 808
Reputation: 26
I had a similar problem to this with CKeditor. It encodes the German characters in the source, although on the display it looks fine. If I change the source then it saves OK, but whenever I switch back to the display behind the scenes it alters the characters again. I've been looking for a setting to change in the CK config but haven't found one that works yet.
Flex will display German characters but in my case, and Ankur's it seems, only if it is given them in the first place.
Upvotes: 0
Reputation: 10689
That is an UTF-8 text being displayed as ANSI text - not a font problem, but a character encoding problem. PHP has to encode this text properly before sending it to Flash, or encode it after receiving it (depending on what exactly you're doing). See utf8_encode and utf8_decode.
Be aware, it may even be the case that you're encoding it twice.
Upvotes: 2
Reputation: 1231
This is a character encoding problem, not a font embedding problem.
Make sure your PHP script delivers text encoded in Unicode (UTF-8) format.
Upvotes: 1