Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » How to display Traditional Chinese (Big-5)?
Re: How to display Traditional Chinese (Big-5)? [message #3759 is a reply to message #3743] Fri, 23 June 2006 03:04 Go to previous messageGo to previous message
yoco is currently offline  yoco
Messages: 25
Registered: June 2006
Location: Taiwan
Promising Member
Thank you for your reply Smile

After read lots of documents and traced lots of source code,
Finally I display Chinese successfully.

The "Big5" is the name of a Charset Encoding,
just like "WIN1250" is a name of a charset encoding. In Taiwan,
"Big5" is the encoding that most people using.

http://en.wikipedia.org/wiki/Big5

After read the cource code,
I know Upp havn't support Big5 yet,
So I saved my text file as UTF-8,
But I still can't display Chinese correct.

After tracing into the source codes of Upp, I found that,
in the function Draw::DrawText() in Draw.cpp,
it send a CHARSET_DEFAULT to function TextUnicode() as a charset parameter,
but the charset in my file is UTF-8.
So the function TextUnicode() can't convert the UTF-8 to wchar in the right way.
And ExtTextOutW() does not get the right wchar string.

So I modify the definition of CHARSET_DEFAULT from 0 to 255 in Charset.h, and it WORKS!
The Chinese display correctly.

I don't know is that the right way to do?
or I just missed some instruction in the manual which I should known at first?
Is there are any "official" way to change the default charset?
--
Sorry about my poor English O_O

[Updated on: Fri, 23 June 2006 03:09]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to reset a file .t
Next Topic: Translation Problems (German)
Goto Forum:
  


Current Time: Mon May 13 20:52:10 CEST 2024

Total time taken to generate the page: 0.03523 seconds