Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does anyone have ever used functions such as cpconvert?

Status
Not open for further replies.

pctest

Programmer
Apr 12, 2004
89
US
I want to understand more about windows locale, code page. Try cpconvert but the converted characters are same as the original expression. I assume that I will able to convert English characters to other language and vice versa by using cpconvert.

If there is any article about this area, it will be great.

Thank you for any help.
 
AFIK, Usually only characters higher than CHR(127) need any changes in different code pages.

Try going to a russian, or other foreign language website, which has many non a-z letters, then cut-and-paste into VFP, and try cpconvert.

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
PcTest,

Code pages has nothing to do with converting ordinary alphabetic characters or standard punctuation symbols. As Bill say, it is more concerned with the "upper" range of characters, that is, ASCII 128 to 255. Nor does it actually convert characters from one character to set to another; it simply maps characters to specific positions in the character set.

If you could mention what you are trying to achieve, we might be able to point you in the right direction.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
I have a text file containing some characters which are encoded using an algorithm. I have a VFP program to decode the encoded characters back to the original characters. This program works fine when the Windows language is English. If I change the language to something like Chinese (Hong Kong S.A.R.), the program won't work anymore.

I just notice now that the encoded characters may be using Windows Character Set not ASCII since I see the "trademark" symbol tm which I believe it only exists in Windows Character Set. I wonder if I make sure that the encoded characters are ASCII including extended one, will one program work for all different languages?

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top