Am 13. Feb 2005 um 16:01 Uhr schrieb Stefan Mettenbrink:
Michael Ebsen wrote:
bist Du sicher, dass der Text im Folderitem im UTF8-Format vorliegt ?
Meiner Erfahrung nach ist das nicht unbedingt der Fall.
Du solltest eventuell vorher eine Umwandlung vornehmen !
Ich habe im Debugger nachgesehen, in welchem encoding der Text vor der
Wandlung vorliegt. Beide male wurde UTF8 angegeben.
Wenn ein Folderitem nicht UTF8 übergibt, wie soll ich es denn erraten?
Mit defineencoding hatte ich es IMHO auch schon versucht. :-(
versuche mal folgenden Code der sagt Dir, was RB meint was im vorliegt
;-))
''Dim c as TextConverter
''Dim t as TextEncoding
''t=Char.Encoding
''
''if t=NIL then
''MsgBox char
''return char
''else
''c=GetTextConverter(GetTextEncoding(t.base,t.variant,t.format),
GetTextEncoding(0))
''MsgBox ("Base: "+cstr(t.base)+" Variant: "+cstr(t.variant)+"
Format: "+cstr(t.format))
''return c.convert(Char)
''end if
Ciao
Claudius
--
G4/733 QS / MacOS X 10.3.7de / RB 5.5.3de/ Valentina 1.10.0 & 2.0bX
Homepage http://www.ClaSai.de
iChat ryhoruk
RealBasic ListBoxes: [ I feel the need...the need for speed!!! ]
|