Menu

#67 Set code text edit

v1.0_(example)
open
nobody
None
1
2023-12-13
2023-12-12
No

Hi!
I'm converting a program made with hwgui on Windows to use on Linux.
The text editor uses PTISO or iso8859-1(windows OS).
I set the RDD to:
HB_CDPSELECT([PTISO])
And the harbour error messages for
hb_langselect([PT])
And in the Windows environment everything works normally.
In the Linux environment, words that use accents are not appearing on the screen. (Portuguese)
Using hwg functions for example:
Hwg_MsgInfo('áéíóú') does not appear.
I attach the screen with error.
I need help to solve this problem.

Best regards,
Itamar M. Lins Jr.

1 Attachments

Discussion

  • Itamar M. Lins Jr.

    Hi!
    I found function -> hwg_SetAppLocale( "ISO-8859-1" )
    And fix may problem.

    Best regards,
    Itamar M. Lins Jr.

     
  • Alexander S.Kresin

    Yes, hwg_setAppLocale() set the codepage, which will be used to automatically convert all strings, which will be shown on the screen, to utf8.
    Is the problem fixed?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.