Source code file format of ide is set to ascii cannot input chinese~

Just starting out? Need help? Post your questions and find answers here.
User avatar
loadstone
User
User
Posts: 97
Joined: Wed Jan 16, 2008 11:28 am
Location: china

Source code file format of ide is set to ascii cannot input chinese~

Post by loadstone »

6.02 is normal, to 6.03 onwards,When the source code file format of ide is set to ascii, Chinese characters cannot be input. All the inputs are question marks.(????)
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
User avatar
mk-soft
Always Here
Always Here
Posts: 6253
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Source code file format of ide is set to ascii cannot input chinese~

Post by mk-soft »

ASCII only has the simple character set up to 0 - 255 (32 to 127)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
loadstone
User
User
Posts: 97
Joined: Wed Jan 16, 2008 11:28 am
Location: china

Re: Source code file format of ide is set to ascii cannot input chinese~

Post by loadstone »

mk-soft wrote: Fri Dec 29, 2023 10:36 am ASCII only has the simple character set up to 0 - 255 (32 to 127)
You are right, I mean that the version before 6.02 supports ascii file format input Chinese, now 6.03 can not input Chinese, can only open ansi format containing Chinese files, but can not change the Chinese inside, the old source code is invalid!
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
User_Russian
Addict
Addict
Posts: 1554
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Source code file format of ide is set to ascii cannot input chinese~

Post by User_Russian »

There is a similar problem with the Russian language. Instead of text, question marks!
I think it was a big mistake to update Scintilla in PB 6.03. This added a lot of bugs to the IDE that have not been fixed yet!
Fred
Administrator
Administrator
Posts: 18252
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Source code file format of ide is set to ascii cannot input chinese~

Post by Fred »

Try to convert your file in UTF-8 with the old PB and see if it opens correctly with the new version. Chinese and Russian files should be in UTF-8 anyway, using ASCII for that is crying for errors.
User avatar
loadstone
User
User
Posts: 97
Joined: Wed Jan 16, 2008 11:28 am
Location: china

Re: Source code file format of ide is set to ascii cannot input chinese~

Post by loadstone »

Fred wrote: Fri Dec 29, 2023 9:23 pm Try to convert your file in UTF-8 with the old PB and see if it opens correctly with the new version. Chinese and Russian files should be in UTF-8 anyway, using ASCII for that is crying for errors.

Code: Select all

XIncludeFile "d:\其他程序源码\PUREBASIC_XXXXXX\include\tdb_600.pbi"
@Fred bigboss,Now version 6.04 above this sentence does not work, the message messagebox is as follows:

---------------------------
PureBasic
---------------------------
行 1: File not found (d:\其他程序源码\PUREBASIC_XXXXXX\include\tdb_600.pbi).
---------------------------
确定
---------------------------

The directory exists and there is no error, just because the directory has Chinese。( the source file has been set to utf8) :|
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
User avatar
idle
Always Here
Always Here
Posts: 5919
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Source code file format of ide is set to ascii cannot input chinese~

Post by idle »

There's defiantly a bug with xincludefile it doesn't work from command line or any ide versions I've tried.
PB 6.03 lts and PB 6.10b, win 11

I would say a compiler bug rather than IDE
User avatar
mk-soft
Always Here
Always Here
Posts: 6253
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Source code file format of ide is set to ascii cannot input chinese~

Post by mk-soft »

Same on pb v6.10 b1
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
loadstone
User
User
Posts: 97
Joined: Wed Jan 16, 2008 11:28 am
Location: china

Re: Source code file format of ide is set to ascii cannot input chinese~

Post by loadstone »

@Fred
Diamond Sutra: all law I was into at, forbearance .
http://www.8do8.com
Post Reply