Spanish accented chars not working - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Spanish accented chars not working (/showthread.php?tid=2521) |
Spanish accented chars not working - Ikerkaz - 03-14-2024 Hi to all! I'm trying to read a TXT with a spanish text, full of accented characters (like á or Á) and obviously our beloved ñ and Ñ I have loaded a font in memory (with _LOADFONT) and I'm trying to PRINTSTRING my file, but it is impossible. My screen is full of strange characters, and I don't know what to do... I think that it is an "unicode" problem, but I don't understand this thing... sorry Thank you very much. RE: Spanish accented chars not working - a740g - 03-14-2024 Your file is probably encoded in UTF-8. Read the contents using _READFILE$ and then print it using _UPRINTSTRING using the encoding argument 8. See: https://qb64phoenix.com/qb64wiki/index.php/READFILE$ https://qb64phoenix.com/qb64wiki/index.php/UPRINTSTRING RE: Spanish accented chars not working - Ikerkaz - 03-14-2024 (03-14-2024, 12:46 PM)a740g Wrote: Your file is probably encoded in UTF-8. AMAZING! I didn't know that options in _UPRINTSTRING... in fact, I didn't know this instruction ... (my face is turning red) Thank you very much |