Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
My visual studio has Unicode supported .lib and .dlls.

The problem is, I have a html file which has, Tamil letters.
How to display that letter in a text box or in any control. Even after i set unicode support in project settings, When i tried to set tamil characters in text box, it is showing as like ???????????????????????????????????
After i used to mbstowcs() WIN32 API function to convert from Multibyte to Unicode letters.
it is showing like this "பாரதிதாசன் பாடல்கள்"

Can anyone please help me what i need to do, to display other language characters.
Posted

I guess, you are missing the Tamil Locale MUI. You need to install the language pack such that the text in that locale can be seen properly.

Read all about them here: Multiple User Interface (MUI) Language Packs[^]
 
Share this answer
 
Not enough information to give a definitive response, but I guess your Tamil html file is encoded in UTF-8. You need to convert it to UTF-16 (usually called "Unicode" on Windows) first (mbstowcs won't do it for you) and then display it in a control.

Also, you need to make sure the font you use in your control supports Tamil letters.
 
Share this answer
 
Comments
Rajesh Apr09 28-Jul-10 6:49am    
Hi Thank you for ur answer.

Let me tell u clearly about my scenario.
i. I have 1 browser control & 1 text box in a dialog box.
ii. If i click on some link i need to display that link(label) in the text box.
iii. The webpage could be any language.

Problem: If the webpage has other than english characters, how to display or support the control(text box) for all languages.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900