Re: [DUG] Thai Baht Symbol - Try Unicode

2007-08-02 Thread Colin/Mina

Steve,

  I think you are going to need to incorporate unicode. Learn about Unicode 
here:

  http://perl.net.au/wiki/Unicode

  You will find the Thai character set here :
http://downloads.activestate.com/pub/apc/perl-current/ext/Encode/ucm/8859-11.ucm

   The Baht symbol in Unicode is U0E3F \ xDF | 0 #

I'm sure I've incorporporated UTF in Delphi some years ago but can't quickly 
find a reference to it.


Sorry for some reason I can't turn the above URLs into Hyperlinks. You'll 
need to cut and paste them into your browser.


HTH.

  Colin


- Original Message - 
From: Steve Peacocke [EMAIL PROTECTED]

To: NZ Borland Developers Group - Delphi List delphi@delphi.org.nz
Sent: Friday, August 03, 2007 8:54 AM
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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) 1110:10111000:1011
   UTF-16 (hex) 0x0E3F (0e3f)
   UTF-16 (decimal) 3,647
   UTF-32 (hex) 0x0E3F (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@delphi.org.nz
  Admin: http://delphi.org.nz/mailman/listinfo/delphi
  Unsubscribe: send an email to [EMAIL PROTECTED] 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@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: 
unsubscribe 

___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe


Re: [DUG] Thai Baht Symbol - Try Unicode

2007-08-02 Thread Steve Peacocke
Thanks Colin, I'm looking at the TMS Unicode component also.

Steve

On 03/08/07, Colin/Mina [EMAIL PROTECTED] wrote:
 Steve,

   I think you are going to need to incorporate unicode. Learn about Unicode
 here:
   http://perl.net.au/wiki/Unicode

   You will find the Thai character set here :
 http://downloads.activestate.com/pub/apc/perl-current/ext/Encode/ucm/8859-11.ucm

The Baht symbol in Unicode is U0E3F \ xDF | 0 #

 I'm sure I've incorporporated UTF in Delphi some years ago but can't quickly
 find a reference to it.

 Sorry for some reason I can't turn the above URLs into Hyperlinks. You'll
 need to cut and paste them into your browser.

 HTH.

   Colin
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe