[DUG] Thai Baht Symbol - or Hex value to String converted

Steve Peacocke steve.peacocke at gmail.com
Fri Aug 3 09:33:32 NZST 2007


Damn, I was hoping someone wasn't going to tell that. I was just
checking into this 'Unicode' word when your email hit.

Thanks Tim.

Steve

On 03/08/07, Tim Jarvis <Tim.Jarvis at codegear.com> wrote:
> Steve, the VCL components don't support Unicode characters, this is on the road map and is expected to be delivered next year. For now I would suggest the excellent TMS component suite. (http://www.tmssoftware.com/)
> Regards Tim.
> -----Original Message-----
> From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On Behalf Of Steve Peacocke
> Sent: Friday, 3 August 2007 6:55 AM
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] Thai Baht Symbol - or Hex value to String converted
>
> Just to clarify, My code states...
>
>    Label1.Caption := 'symbol (ß)';
>    Memo1.lines.add('symbol (ß)');
>
> but in each case the question mark '?' is displayed instead fo the baht symbol.
>
> I will, no doubt, have the same issue with Pound and others.
>
> Steve
>
> On 03/08/07, Steve Peacocke <steve.peacocke at gmail.com> wrote:
> > I can also paste "symbol (ß)" into the source code and using a font
> > that supposed to render correctly, either Mocrosoft Sans Sarif or
> > Tahoma, all that will display is 'symbol (?)'.
> >
> > Talk about frustrating.
> >
> > Any help here by anyone would be really, really helpful.
> >
> > Steve
> >
> > On 03/08/07, Steve Peacocke <steve.peacocke at gmail.com> wrote:
> > > Except that I can see it rendered on a web page, I can copy that
> > > character into MS Word and it shows as a character. I can also copy
> > > that character into this email (ß) and it shows correctly (Gmail, on
> > > the internet).
> > >
> > > Therefore, there should be a way that I can display that character in
> > > a Label on a form.
> > >
> > > Code Pages? A search of both D2007 and D7 help files produce a zero
> > > result on this. Can you elaborate?
> > >
> > > Thanks Rohit,
> > >
> > > Steve
> > >
> > > On 02/08/07, Rohit Gupta <r.gupta at xtra.co.nz> wrote:
> > > > Just Guessing Here
> > > >
> > > > 1.  If you use the currency format etc, then windows should do the right
> > > > thing for a pc with thai on
> > > > 2.  Else I suspect code pages (are they still around) plus a font that
> > > > has the character in it.
> > > >
> > > >
> > > >
> > > > Steve Peacocke wrote:
> > > > > Good afternoon all.
> > > > >
> > > > > I'm having problems displaying the Thai Baht symbol (ß) any ideas?
> > > > >
> > > > > This page...
> > > > > http://www.fileformat.info/info/unicode/char/0e3f/index.htm
> > > > >
> > > > > Suggests that the sysmbol can be reproduced with the following...
> > > > >
> > > > > HTML Entity (decimal) &#3647;
> > > > > HTML Entity (hex) &#xe3f;
> > > > > How to type in Microsoft Windows Alt +0E3F
> > > > > UTF-8 (hex) 0xE0 0xB8 0xBF (e0b8bf)
> > > > > UTF-8 (binary) 11100000:10111000:10111111
> > > > > UTF-16 (hex) 0x0E3F (0e3f)
> > > > > UTF-16 (decimal) 3,647
> > > > > UTF-32 (hex) 0x00000E3F (0e3f)
> > > > > UTF-32 (decimal) 3,647
> > > > > C/C++/Java source code "\u0E3F"
> > > > > Python source code u"\u0E3F"
> > > > >
> > > > > So, converting that to Delphi, how's that done. I want a label to
> > > > > display the equivilent of..
> > > > >
> > > > > Dollar = $12,345
> > > > > Baht = ß12,345
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > Steve
> > > > >
> > > > >
> > > >
> > > > _______________________________________________
> > > > NZ Borland Developers Group - Delphi mailing list
> > > > Post: delphi at delphi.org.nz
> > > > Admin: http://delphi.org.nz/mailman/listinfo/delphi
> > > > Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
> > > >
> > >
> > >
> > > --
> > > Steve Peacocke
> > > http://stevepeacocke.blogspot.com/
> > >
> >
> >
> > --
> > Steve Peacocke
> > http://stevepeacocke.blogspot.com/
> >
>
>
> --
> Steve Peacocke
> http://stevepeacocke.blogspot.com/
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject: unsubscribe
>


-- 
Steve Peacocke
http://stevepeacocke.blogspot.com/



More information about the Delphi mailing list