Encoding problem when migration hsqldb->Firebird

Kaganski Mike mikekaganski at hotmail.com
Wed Jan 30 11:00:48 UTC 2019


Hi Julien,

On 30.01.2019 12:13, Julien Nabet wrote:
> Giving a try to tdf#123020 (which is finally a dup), I added some traces 
> and noticed this kind of string (OUString):
> "CREATE CACHED TABLE "\u00c5r"("\u00c5r" INTEGER NOT NULL PRIMARY KEY)"
> ...
> How to convert \u... to the "real" character?

It might be some artifact of the tracing machinery, which e.g. could use 
a font without the codepoint, or output all non-ascii chars like that? 
because \u00c5 is a valid UTF-18 escape sequence [1] (U+00C5, [2]), and 
so "\u00c5r" maybe is just "År" in the real string (i.e., the "\u00c5r" 
takes 4 sal_Unicode characters for ", Å, r, and " in the OUString, and 
the Å is actually the "real" character)?


[1] https://en.cppreference.com/w/cpp/language/escape
[2] https://www.fileformat.info/info/unicode/char/00c5

-- 
Best regards,
Mike Kaganski


More information about the LibreOffice mailing list