Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what is the code page for Czeh language and the languages which dont have ?.please let me know


file will be ansi and i will read the data and convet to unicode based on the code page
Posted
Updated 29-Apr-15 20:00pm
v2
Comments
Sergey Alexandrovich Kryukov 30-Apr-15 1:22am    
Why? How is that related to MFC? What does it mean, "which don't have"?
—SA
[no name] 30-Apr-15 1:23am    
MULTI BYTE to WIDE CHAR function will take coep age i want for CZeh language ?
Sergey Alexandrovich Kryukov 30-Apr-15 1:27am    
Why?
—SA
[no name] 30-Apr-15 1:48am    
Czeh string - Dilei projekt but it should come as ( please let me know the code page)
Czeh string - Dílčí projekt

1 solution

It's 867 or 895. But it does not mean you should really use it. The concept of code page is pretty much obsolete.

Please see: http://en.wikipedia.org/wiki/Code_page[^].

If you just need to support the language, you need to use Unicode:
http://en.wikipedia.org/wiki/Unicode[^],
http://unicode.org[^],
Unicode in MFC: https://msdn.microsoft.com/en-us/library/wsdfs47e.aspx[^].

Windows, internally, uses UTF-16LE encoding for representation strings in memory, and code page 1200 is assigned to it:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%29.aspx[^].

[EDIT]

After exchanging our comments, I don't know what encoding you use, but I hope you know the character codes you have on input. Then transcoding won't be a problem at all, even in worst case. But fist, please see: https://msdn.microsoft.com/en-us/library/cc488003.aspx[^].

—SA
 
Share this answer
 
v2
Comments
[no name] 30-Apr-15 1:37am    
i have convert from ansi to unicode thats why i want ansi czeh strings to unicode . the code page u provide its not working
Sergey Alexandrovich Kryukov 30-Apr-15 1:51am    
You are not getting it. I took some Czech words ("čtvrtý pád"), put it in my text editor, and tried to save as ANSI, and it gives me the warning that ANSI does not support some characters. It can be saved in one of UTFs. That said, there is no such thing as Czech in ANSI. It could be some non-standard encoding as "Extended_ASCII" (http://en.wikipedia.org/wiki/Extended_ASCII) or some obsolete Windows encoding, such as Windows-cp****.

I wonder how you ended up with such obsolete stuff... Anyway, you can really try one of the code pages I referenced and convert this 8-bit encoding to Unicode.

—SA
[no name] 30-Apr-15 1:44am    
please how to convert Czeh ansi to perfect unicode file
Sergey Alexandrovich Kryukov 30-Apr-15 1:52am    
There is no Czech ANSI. But, in most cases, you can convert it. In worst case, you can do it yourself, by making a table of the codes in your encoding.
—SA
[no name] 30-Apr-15 1:57am    
existing file is there ansi(i.e CZeh file) i want to convert based on the code page .... by using multi byte to wide char the , i can convert .. but i want the code page ( whatever code page i used its not working) already client will h ave some ansi encoded Czeh language

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