Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,
I have a problem in printing receipt that contain Chinese characters, somehow I manage to show Chinese characters in my application by using Unicode, and setting the regional to Chinese.
But when I'm printing the text file that contained Chinese, it shows special characters.
My code is like this,

Set Device To Printer
CSTR= Chrtran(Filetostr(cfiletoprint),"{","}")
???CSTR

cfiletoprint is the text file generated by the system,
but when I'm printing it directly from the textfile, it prints perfectly,
Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 15-Oct-13 23:39pm    
There is no such thing as "special character". But FoxPro..? That lame wasn't updated since 1994... are you serious?
—SA

1 solution

How can you hope to get something good from this stone-age lame? No wonder Unicode support it a complete mess you would not like to deal with. Please see:
http://www.west-wind.com/presentations/foxunicode/foxunicode.asp[^].

—SA
 
Share this answer
 
Comments
thepain2k13 16-Oct-13 0:01am    
thnx for the response, I already did what Rick Strahl said in his article, the problem is he didn't say anything about printing,
Sergey Alexandrovich Kryukov 16-Oct-13 0:03am    
(Sigh...) If you want to use such old and lame stuff, you will have to suffer, and you won't see much sympathy and help. Who wants to mess with dirty things?.. Do you really need all that?
I would throw out the whole idea of keeping FoxPro without any hesitation... If you can, of course...
—SA

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