Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Can you please explain how i can read or get the value of char * which is written in Koren txt Plus English txt.

Example
char * temp = "SomeKoren Txt_ SomeEnglish Txt";
where
SomeKoren Txt = koren txt which i can't write here because it will convert some garbage values after posting.
SomeEnglish Txt = some english txt;
My question is if we write a code in VC++/C++ and declare a variable char *temp = "MakeSence"; then temp will take all the characters which is written on the right side that's "MakeSence" but if we take a same variable and put some txt which is the combination of Koren language and English Language then only English txt is reflect on the Left side but Koren Txt reflect having "???" txt why ????
please give the solution asap. why we are not able to take the Koren Txt in the char * ?
Posted
Updated 4-Jun-12 0:22am
v2
Comments
Richard MacCutchan 4-Jun-12 7:17am    
Probably because Korean characters cannot be created in the ASCII set and need to be in Unicode (wchar_t) strings.
Narsal 6-Jun-12 0:59am    
can you please post the code with example
Narsal 4-Jun-12 7:51am    
can you please post the code with example

1 solution

The following includes Gulim characters although it will only display correctly if your browser handles that font.

C++
wchar_t unicodeString = L"abcdeᄧᄨᄩ"
 
Share this answer
 
v2

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