Marc Santhoff wrote:
Am Montag, den 28.11.2005, 10:29 +0100 schrieb Stephan Bergmann:

Marc Santhoff wrote:

Hi,

I'm using dictionaries from basic code and noticed a problem. When the
search word from a dictionary entry is inserted into a writer doc the
encoding is not shown correctly.

Try this in a german localized version:

sub encError
        dls = createUnoService("com.sun.star.linguistic2.DictionaryList")
        dic = dls.getDictionaryByName("soffice.dic")
        entries = dic.getEntries()
        msgbox entries(16).getDictionaryWord()
end sub

In a german language version of OO.o 1.1.x this should read
"Bemaßungslinien" but the char "ß" is not converted correctly. This
holds true for the german  OO.o2.0-RC1/Windows, too.

Is this worth filing an issue or is it a pilots error?

It sure sounds like an error (so please file an issue): XDictionaryEntry.getDictionaryWord returns a UNO string, which is Unicode, so no excuse to garble an "ß" (and Basic's msgbox command should also be fully Unicode...).


Thank for replying.

I only thought I was missing some conversion function or the like
because all umlauts are garbled too. They are shown as two chars in a
writer doc. And from the GUI anything works as expected ...

You mean, adding text to a writer doc via some Basic code (where the text to be added is represented as a literal Basic string) leads to garbled characters? That's strange. Maybe Andreas Bregas knows whether there is some part of Basic or the Basic IDE that works with locale-dependent text encodings instead of Unicode?

-Stephan

I will file an issue anyways.

Marc

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to