Accented characters

Mario Beaulieu <mariobeaulieu21-FFYn/[email protected]>
Newsgroups gmane.comp.lang.forth.gforth
Message-ID <[email protected]>
Hi,

The problem I'm having might not have anything to do with GForth, but let's see. I'm running GForth on a Raspberry Pi (Linux).

I have a GForth program (notification.fs) that sends notifications to my cell phone. The problem I have is that it replaces accented characters (à, è, é, etc.) with question marks but only if I run it from the command line , like:
                 GForth notification.fs

What the file notification.fs does, is compile the necessary words, the main one being SendNotification, and the last line sends a message, like:
                 s" àéèeeeee"  SendNotification

If I run it from the command line, it replaces the accented characters, but if I start GForth first and paste the content of notification.fs, it works perfectly.

Even weirder, if I 'redo' the last line right after running it from the command line, it works!

The character encoding is UTF-8. I tried with ISO8859-1, with the same result.

Any idea?

Thanks

Mario Beaulieu

Envoyé de mon iPad
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.