Recent

Author Topic: Latest snapshot console app Asia font problem in win7?  (Read 2116 times)

Goodman H__

  • Full Member
  • ***
  • Posts: 130
Latest snapshot console app Asia font problem in win7?
« on: February 28, 2012, 05:30:39 am »
Greetings!

Just found under 32bits Windows7,the latest daily snapshot,console app can't print Chinese characters properly which is not a problem in previous version.Did anybody here met the same problem?

EDIT 1:
What's more,how to use convertion utilities such as sysToUTF8,UTF8toSys ,UTF8toCP936,CP936toUTF8?I found units like lazutf8,lconvEncoding can't be available in console applications.How to fix this?


EDIT 2:Work around:
Creating a new console app which contains Chinese characters printing routines,these Chinese characters are not recongnizable.This is the original issue I am seeking help.

Workaround:Open by notepad.exe and re-save the source file format from UTF8 to ansi,open the project in Lazarus,clean and build the app,whatever the Chinese characters are recognizable or not,close the app again,open by notepad.exe again and re-save the source file format from ansi to UTF8.Open the project in Lazarus ,clean and build.Now the Chinese characters are recognizable.This has been tested in my pc by creating several new console projects.

But I am fully confused here why.


Thanks for the help in advance.

Regards,
Sam
« Last Edit: February 28, 2012, 07:35:09 am by Goodman H__ »
fpc:2.6.1 Lazarus:1.1 SVN39277
OS:win 7

 

TinyPortal © 2005-2018