Does not work unicode.

Working on new editor enhancements?
User avatar
Hemulo
New User
New User
Posts: 7
Joined: Wed Nov 25, 2009 10:23 pm
Location: Rusio
Contact:

Does not work unicode.

Post 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!
Last edited by Hemulo on Thu Nov 26, 2009 12:42 pm, edited 1 time in total.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Does not work unicode.

Post by ts-soft »

Set the sourceformat to UTF-8 and use a font that support esperanto

Greetings
Thomas
User avatar
Hemulo
New User
New User
Posts: 7
Joined: Wed Nov 25, 2009 10:23 pm
Location: Rusio
Contact:

Re: Does not work unicode.

Post 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.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Does not work unicode.

Post 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?
oh... and have a nice day.
User avatar
Hemulo
New User
New User
Posts: 7
Joined: Wed Nov 25, 2009 10:23 pm
Location: Rusio
Contact:

Re: Does not work unicode.

Post 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?
Image

There is no font capable to change a situation.

The problem is writing letters from the keyboard!
Last edited by Hemulo on Thu Nov 26, 2009 2:47 pm, edited 1 time in total.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Does not work unicode.

Post 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.
oh... and have a nice day.
User avatar
Hemulo
New User
New User
Posts: 7
Joined: Wed Nov 25, 2009 10:23 pm
Location: Rusio
Contact:

Re: Does not work unicode.

Post 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.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Does not work unicode.

Post 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.
oh... and have a nice day.
User avatar
Hemulo
New User
New User
Posts: 7
Joined: Wed Nov 25, 2009 10:23 pm
Location: Rusio
Contact:

Re: Does not work unicode.

Post 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?
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Does not work unicode.

Post by Kaeru Gaman »

it's copy/paste, same thing as if I copy "ĈĉĜĝĤĥĴĵŜŝŬŭ" from your posting in this thread.

Charmap is this tool:
Image
from your Windows Tools.
oh... and have a nice day.
User avatar
Hemulo
New User
New User
Posts: 7
Joined: Wed Nov 25, 2009 10:23 pm
Location: Rusio
Contact:

Re: Does not work unicode.

Post 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...
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: Does not work unicode.

Post 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.
oh... and have a nice day.
User avatar
Hemulo
New User
New User
Posts: 7
Joined: Wed Nov 25, 2009 10:23 pm
Location: Rusio
Contact:

Re: Does not work unicode.

Post by Hemulo »

Thanks for the information.
Post Reply