realbasic-nug.de
[Top] [All Lists]

Re: Umlautprobleme

To: REALbasic NUG German <realbasic-nug dot de at lists dot realsoftware dot com>
Subject: Re: Umlautprobleme
From: Claudius Sailer <Claudius at sailer-online dot de>
Date: Sun, 13 Feb 2005 17:38:40 +0100
Delivered-to: realbasic-nug dot de at lists dot realsoftware dot com
References: <3191141039 dot 98212361626 at [192 dot 168 dot 1 dot 10]> <fdcedf917aa00935a29b961e4ea5e18a at budget-software dot de> <3191155320 dot 4523254488 at [192 dot 168 dot 1 dot 10]>

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!!! ]

<Prev in Thread] Current Thread [Next in Thread>