Page 1 of 1
Does not work unicode.
Posted: Thu Nov 26, 2009 12:12 pm
by Hemulo
Unfortunately, the default editor PureBasic cannot correctly process many entered symbols of unicode.
For example: "ĈĉĜĝĤĥĴĵŜŝŬŭ"
These letters are used in Esperanto.
And also many other symbols: "≈№¢≡≤≥≠℃œæƒ¿ˆ¹²³⁴⁵⁶⁷⁸⁹⁰ŒÆ"
All these and many other characters can not be entered in the editor.
Although the existing files in UTF-8 editor can display correctly.
The problem arises precisely from the introduction of characters!
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 12:24 pm
by ts-soft
Set the sourceformat to UTF-8 and use a font that support esperanto
Greetings
Thomas
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 12:31 pm
by Hemulo
ts-soft wrote:Set the sourceformat to UTF-8 and use a font that support esperanto
UTF-8 mode and mode support for unicode were included.
It's not the fonts, namely in the processing of input characters.
In addition, the characters "ĈĉĜĝĤĥĴĵŜŝŬŭ" are present in all the standard fonts for Unicode.
In the same default editor the characters beautifully displayed using the same font, in the case when they were loaded from the finished file created in another editor.
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 1:38 pm
by Kaeru Gaman
when I change the IDE font to "Courier New", I can see the accents of the string above in the source.
standard font is "Courier", why is this?
source encoding UTF-8 and "create unicode executable" enabled.
however they are not displayed in the debugger window, is there some additional setting there?
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 2:40 pm
by Hemulo
Kaeru Gaman wrote:when I change the IDE font to "Courier New", I can see the accents of the string above in the source.
standard font is "Courier", why is this?
source encoding UTF-8 and "create unicode executable" enabled.
however they are not displayed in the debugger window, is there some additional setting there?
There is no font capable to change a situation.
The problem is writing letters from the keyboard!
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 2:45 pm
by Kaeru Gaman
and when you type the same text into NotePad it works?
sorry I can't test it myself because on German (and I think also on English) Keyboard-Layout
I have no way to directly type a Char with circonflex or brevis, I got to fetch it from the CharMap anyways.
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 2:57 pm
by Hemulo
Kaeru Gaman wrote:and when you type the same text into NotePad it works?
In Notepad, everything works fine.
Kaeru Gaman wrote:
sorry I can't test it myself because on German (and I think also on English) Keyboard-Layout
I have to way to directly type a Char with circonflex or brevis, I got to fetch it from the CharMap anyways.
You have got to introduce the characters in the editor?
I use the extended keyboard.
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 3:05 pm
by Kaeru Gaman
since I normally don't need those chars, I did not experiment with any "extended keyboard" functionality yet.
when I need uncommon chars, I import them from charmap.exe
...
maybe this problem really is a lack of functionality of the IDE, I don't know.
please wait for freak to comment on this topic.
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 3:21 pm
by Hemulo
Kaeru Gaman wrote:since I normally don't need those chars, I did not experiment with any "extended keyboard" functionality yet.
when I need uncommon chars, I import them from charmap.exe
At use charmap.exe at you this problem does not arise?
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 4:54 pm
by Kaeru Gaman
it's copy/paste, same thing as if I copy "ĈĉĜĝĤĥĴĵŜŝŬŭ" from your posting in this thread.
Charmap is this tool:

from your Windows Tools.
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 10:31 pm
by Hemulo
Kaeru Gaman wrote:it's copy/paste, same thing as if I copy "ĈĉĜĝĤĥĴĵŜŝŬŭ" from your posting in this thread.
You are right. I have tested this tool, it really works. But often to use it, it is very inconvenient.
I will prefer even all to write in other editor and to insert already ready text into the program.
I simply wish to pay attention that the standard editor not correctly understands pressing of keys and input of symbols.
If you have a German keyboard layout as you enter symbols "ÜüßÖö"?
Whether the editor supports input of these symbols?
I cannot check up, since I do not have German apportion...
Re: Does not work unicode.
Posted: Thu Nov 26, 2009 10:46 pm
by Kaeru Gaman
editor supports all standard key of german standard layout, so I can directly enter Ä a Ö a Ü a ß § and @ € @ µ ² ³ {[]} ~| \
for the second half of them we have a function
alternate
graphics, it's the right ALT-Key and has the additional function of a third char on a key.
this is standard german layout, no extended layout, no special drivers.
... I dimly recall some problems with kyrillic chars quite a time ago, don't know what was done with that.
as I said before, normally I would think the IDE should accept all keytypes NotePad accepts with the same result.
please wait for
freak to answer this question concretely, I cannot help you further.
Re: Does not work unicode.
Posted: Fri Nov 27, 2009 7:39 am
by Hemulo
Thanks for the information.