forlano Messages: 1185 Registered: March 2006 Location: Italy
Senior Contributor
Hello,
in the past I have signaled a problem in misaligned characters in a simple text file in which there were accented characters. It looked like this below:
In principle there is a shift toward the left for each accented character. It seems there is a "eated" space for each accented character.
Today I have a simple test case that produces another problem that maybe related with the previous one.
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{ String a = "ultimatepp ultimatepp ultimatepp\n";
a << "ultimatèpp ultimatèpp ultimatèpp\n";
SaveFile("a.txt", a);
}
This is what I see if in Project/Package organizer I set ENCODING=Default
If instead I set ENCODING=UTF8 I get the problem with accented characters:
Does not help to have as first line the command
SetDefaultCharset(CHARSET_UTF8);
Is it normal? Of course I am missing something... but what?
Thanks,
Luigi