02-04-2023, 02:15 PM
(This post was last modified: 02-04-2023, 02:16 PM by BoolTaxCoder.)
Hi guys,
i have a file with german umlauts. So i need to convert it from 1252 to unicode.
In QM2 i did it this way:
In Libreautomate i don't get the path. I saw in C# the way around like this:
But it asks me for an Encoding.Provider and customization. Hmmm... Sorry, i am a very bloody beginner in C# and Libreautomate.
Has anybody a hint for me how i get the string from 1252 to unicode in Libreautomate?
Many thanks
Achim
i have a file with german umlauts. So i need to convert it from 1252 to unicode.
In QM2 i did it this way:
In Libreautomate i don't get the path. I saw in C# the way around like this:
Encoding wind1252 = Encoding.GetEncoding(1252);
Encoding utf8 = Encoding.UTF8;
byte[] wind1252Bytes = wind1252.GetBytes(_s);
byte[] utf8Bytes = Encoding.Convert(wind1252, utf8, wind1252Bytes);
string utf8String = Encoding.UTF8.GetString(utf8Bytes);
Has anybody a hint for me how i get the string from 1252 to unicode in Libreautomate?
Many thanks
Achim