Hi Tobias, generally SWORD defaults to always return UTF-8. Depending on what
you do with the string returned from your function, in Windows you may or may
not get nice results. Also, to check, we do have multiple locales for German.
The de-utf8 locale is preferred if SWORD is compiled with a StringMgr which
understands Unicode. How are you compiling SWORD on Windows? With ICU?
On October 3, 2020 10:55:32 AM GMT+02:00, Tobias Klein <cont...@tklein.info>
wrote:
>
>Hi,
>
>In node-sword-interface I have a method getSwordTranslation which does
>the following:
>
>std::string translation =
>std::string(this->_localeMgr->translate(originalString.c_str(),
>localeCode.c_str()));
>return translation;
>
>I have just found that this method does not do the right thing on
>Windows any longer.
>
>When invoking my wrapper nsi.getSwordTranslation('Matthew', 'de') I now
>get the following:
>Matth�us
>
>The expected result should be: Matthäus
>
>So the result is issues with German Umlaut characters. I only have this
>issue on Windows, though – the Umlaut’s are returned correctly on
>Linux.
>
>The last SWORD revision I’ve been using without this issue is SVN Rev.
>3747 (from May 18th 2020).
>
>This would be a showstopper for me if it does turn out to be an issue
>in SWORD.
>
>Best regards,
>Tobias
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page