Anybody here? I'm learning JUCE and met a questtion.It is messy code showed on the GUI in Chinese,I use Visual Studio 2008. I tried to use Unicode and Multi-byte of IDE settings but it doesn't work ,I also use CharPointer_UTF8(and others) to wrapper the Chinese raw string.Who can help me write a good locale independent procedure code to solve this problem. Look the picture ATTACHMENT,the red messy part is Chinese.
- Build the Introjucer - Run it - Navigate to "Tools"
- Select "UTF-8 String Literal Helper"
- Put non-ASCII text in the first box
- Copy code from second text box to your code
- ??
- Profit
Hi,jules.I'm sorry for that i cannot catch your words clearly. use a font that actually contains those characters. the "font" means the calss Font in JUCE or other. Can u tell me how to handle it more detailed.
Use Graphics::setFont to select a typeface that actually contains some Chinese characters! You can't draw Chinese characters if the current typeface doesn't contain them!
Hi Joël,
Thank you, your tips for show Chinese for pre-defined sentence works.
One additional question, do you have information for convert the non-ASCII to UTF-8 string on the fly?
Thanks