How to set polish(OEM 852) notaction in FLTK.

53 views
Skip to first unread message

Alek Imbierowski

unread,
Jun 19, 2016, 11:57:48 AM6/19/16
to fltk.general
Hello everyone, i'm writing paragraph game in c++ using FLTK . My problem is how to set notaction in FLTK in order to i could write letters like: ą,ę,ć,ó,ź,ż. When i'm trying to write for example ,,ą" on FLTK  Fl_Multiline_Output value shows ,,¹". I already tried to use function ,, setlocale(LC_ALL,""); " which helped but only for console but on FLTK test there was not effect at all. I tried use:
 \206 - ć
\210 - ł
\230 - ś
\242 - ó
\245 - ą
\251 - ę
\253 - ź
\276 - ż
\344 - ń 
but again i got effect only in console but not in FLTK window. PLS i would rly use somebody help and i would appreciate every help :)

Edzard Egberts

unread,
Jun 20, 2016, 2:31:27 AM6/20/16
to 'ed' via fltk.general
Alek Imbierowski wrote:
> Hello everyone, i'm writing paragraph game in c++ using FLTK . My
> problem is how to set notaction in FLTK in order to i could write
> letters like: ą,ę,ć,ó,ź,ż.

FLTK 1.3.3 uses UTF-8 for character coding but to me it looks like you
try to set a code page for polnish letters. That won't work, you need to
get your letters out ouf the UTF-8 code page, e.g. from something like
this http://www.fileformat.info/info/charset/UTF-8/list.htm



Michael Bäuerle

unread,
Jun 20, 2016, 4:23:58 AM6/20/16
to fltkg...@googlegroups.com
> Alek Imbierowski wrote:
The polish codepage with Unicode mappings (available on Wikipedia) may
also be helpful:
<https://en.wikipedia.org/wiki/Code_page_852>
For 'ą' the table lists an Unicode mapping to U+0105.

Albrecht Schlosser

unread,
Jun 20, 2016, 6:40:00 AM6/20/16
to fltkg...@googlegroups.com
On 19.06.2016 14:21 Alek Imbierowski wrote:
> Hello everyone, i'm writing paragraph game in c++ using FLTK . My
> problem is how to set notaction in FLTK in order to i could write
> letters like: ą,ę,ć,ó,ź,ż. When i'm trying to write for example ,,ą" on
> FLTK Fl_Multiline_Output value shows ,,¹". I already tried to use
> function ,,setlocale(LC_ALL,""); " which helped but only for console but
> on FLTK test there was not effect at all. I tried use:
> \206 - ć
> \210 - ł
> \230 - ś
> \242 - ó
> \245 - ą
> \251 - ę
> \253 - ź
> \276 - ż
> \344 - ń
> but again i got effect only in console but not in FLTK window. PLS i
> would rly use somebody help and i would appreciate every help :)

Starting with FLTK 1.3.0 we use UTF-8 as text encoding, so there should
be no problems to enter any character you can with your keyboard,
cut'n'paste, or drag'n'drop (for instance from another text or character
list).

Which FLTK version are you using? Which OS? If Linux, which distro?

If you build FLTK 1.3 (please use svn or a recent snapshot), then start
the editor demo program, can you type any special characters like € or µ
or some of the characters above, if they are on your keyboard? Are they
displayed correctly?

Reply all
Reply to author
Forward
0 new messages