Page 1 of 1

not a bug: how do I make RJTE actually support Unicode text ??

Posted: 31 May 2025 23:17
by DerellLicht1
I'm modifying a couple of console programs such that they support Unicode text...
However, I don't seem to be able to actually store such strings in RJTE ...

For example, this folder name that I use for testing (let's see if it even works here...)

D:\SourceCode\Git\unicode_console Yes, Master?? > unicons derelict cornucopia "буяновский страйкбол"
arg 0: unicons
arg 1: derelict
arg 2: cornucopia
arg 3: буяновский страйкбол

When I copy this data from the screen, and paste it into a text file (or my C++ source code), it displays like this...
But when I close and re-open the file, I see this:
D:\SourceCode\Git\unicode_console Yes, Master?? > unicons derelict cornucopia "?????????? ?????????"
arg 0: unicons
arg 1: derelict
arg 2: cornucopia
arg 3: ?????????? ?????????

I thought RJTE was using UTF8 for text and code files???

Sorry for posting this here; it *should* have been in Discussions... DM is free to move this thread if he wishes!!

Re: how do I make RJTE actually support Unicode text ??

Posted: 01 Jun 2025 13:48
by Rickard Johansson
You can use "Save As..." and save the file as UTF-8, or click on the status-bar (encoding column) and change the encoding.

There are options you can set to change the default encoding for new documents.

Just make sure the file is saved as Unicode UTF-8 and not ANSI.

Re: how do I make RJTE actually support Unicode text ??

Posted: 02 Jun 2025 00:12
by DerellLicht1
Cool, thanks!! Yes,
Options -> File -> Open -> default encoding
does exactly what I wanted!!