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

Stefan Mueller muellers at orcl-toolbox.com
Fri Aug 3 18:52:59 NZST 2007


Hello Peter,

 

Long time no seen! 

 

Everything is fine – enjoying my life! I got married to Itsuki
(http://www.stefansblog.com/wedding/Ceremony/80_Walk_from_shrine.jpg) and
currently live in Japan. No babies planed yet (seems to be never a good
time, career and babies don’t mix well ;-/) but if an accident happens then
I guess we both wouldn’t mind … at least Itsukis parents seem to be eager to
become grandparents too!

 

My little software company is also doing very well and still leaves me
plenty of free time to pursue other ideas. Since beginning of this year I
started working on a new C# web-project  … trying to make Digital River a
bit of competition ;-).

 

Itsuki is currently studying for her PhD degree here at Osaka University, it
will still be a couple of years till she gets it, but once she has it we
plan to come back to New Zealand.

 

I see you switched your working place (not anymore DeWinter) but are still
in the “meat trading” business … I hope you can deliver me a couple of good
Delphi/C# developers once we come back to NZ!

 

 

Kind Regards,
Stefan Mueller 
_____________________
R&D Manager,
ORCL Toolbox Ltd., Japan
http://www.orcl-toolbox.com <http://www.orcl-toolbox.com/>  

 

 

 

 

 

WHAT IS A GRANDPARENT?
(taken from papers written by a class of 8-year-olds)
 
Grandparents are a lady and a man who have no little children of her
own. They like other people's.
 
A grandfather is a man grandmother.
 
Grandparents don't have to do anything except be there when we come 
to
see them. They are so old they shouldn't play hard or run. It is 
good if
they drive us to the store and have lots of quarters for us.
 
When they take us for walks, they slow down past things like pretty
leaves and caterpillars.
 
They show us and talk to us about the color of the flowers and also 
Why
we shouldn't step on "cracks."
 
They don't say, "Hurry up."
 
Usually grandmothers are fat, but not too fat to tie your shoes.
 
They wear glasses and funny underwear.
 
They can take their teeth and gums out.
 
Grandparents don't have to be smart.
 
When they read to us, they don't skip. They don't mind if we ask for 
the
same story over again.
 
Everybody should try to have a grandmother, especially if you don't 
have
television, because they are the only grown ups who like to spend 
time
with us.
 
They know we should have snack-time before bedtime and they say 
prayers
with us every time, and kiss us even when we've acted bad.
 
A 6 YEAR OLD WAS ASKED WHERE HIS GRANDMA LIVED. ''OH,'' HE 
SAID, ''SHE
LIVES AT THE AIRPORT, AND WHEN WE WANT HER WE JUST GO GET HER. THEN 
WHEN

WE'RE DONE HAVING HER VISIT, WE TAKE HER BACK TO THE AIRPORT.''

 

 

 

 

  _____  

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Peter Bankers
Sent: Friday, August 03, 2007 2:49 PM
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Thai Baht Symbol - or Hex value to String converted

 

Hello Stefan, 

 

My friend from way back. 

In fact I believe you were the first person I ever placed in a permanent
role.

 

I trust all is well with you, work and business and Itski.

 

In my case I’m to be  GRANDAFATHER or the first time this month. My older
daughter is with child and is due to have a baby girl on the 23rd. My wife
and I are very excited of course.

 

OLS DUTCH SAYING: 

“It’s great to be grandfather …only one drawback
“You’ve got share your bed with GRANDMOTHER!!!” 

 

Anyway Stefan, let me how you are doing.

 

 

 

Regards

 

 

Peter Bankers

 

 

 

 

 

-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Stefan Mueller
Sent: Friday, 3 August 2007 4:44 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Thai Baht Symbol - or Hex value to String converted

 

I was just going to mention to forget TMS and go for the free TNTWare

controls ... but looks like they got bought up by TMS software earlier this

year ;-/

 

Please let me know if you want some old copy of the free component library

(which should still do fine).

 

I Unicode enabled all my applications - Once you figure out all the snags

and problems (and build a decent library for handling widestrings) it's

actually quite easy to write Unicode enabled applications!

 

 

There are however a couple of pitfalls (at least in Delphi7, not sure any of

them got fixed in any of the newer Delphi version and there are plenty more

bugs in any of the older Delphi version in this regard!): 

 

Following is a "DON’T DO", Unicode doesn't work from within Delphi source

code:

  Label1.Caption := 'symbol (ß)';

 

 

Following is also a "DON’T DO", because the first string is a normal

ansistring, so the compiler converts implicitly to ansistring:

 

    memo1.Lines.Add('Baht = ' + chr(3647));

 

(widestring = ansistring + widestring   => Fails!)

(widestring = widestring + ansistring   => works!)

(widestring = widestring + widestring   => works!)

 

 

the correct way is to use a Unicode enabled control (like TNTMemo) and use:

    tntmemo1.Lines.Add(widestring('Baht = ') + WideChar(3647));

 

 

 

about codepages/Unicode: Windows (even Vista) still uses codepages ... but

the good thing is that Unicode (widestring) is codepage independent - so no

need to get smart and read about codepages (unless you really want to know

why your Delphi application doesn't work)!

 

Another hint: if you see a "?" then you know you have some

widestring->ansistring->widestring conversion somewhere in your code! - if

you see a empty rectangle box in your display then you know your font is

missing the character to display your Unicode character.

 

 

Kind Regards,

Stefan Mueller 

_____________________

R&D Manager,

ORCL Toolbox Ltd., Japan

 

 

-----Original Message-----

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On

Behalf Of Steve Peacocke

Sent: Friday, August 03, 2007 12:13 PM

To: NZ Borland Developers Group - Delphi List

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

 

Hello Brian,

 

The "uppercase beta" that you are seeing is in fact the character used

for the Baht symbol. See

http://www.fileformat.info/info/unicode/char/0e3f/index.htm

 

I understand what you are saying, but this will be installed onto a

full hardware sealed-box "device" (I am unable to elaborate on that)

so we have total control over what the user sees whether here in new

Zealand or in Mongolia or anywhere on the planet. Thankfully we are

able to make that definate.

 

I have ordered the TMS Unicode package (actually the full suite,

should be interesting), so hopefully this will be here shortly and I

can use it. preliminary trials with the downloadable trial components

have, so far, proven successful.

 

Thanks again.

 

Steve

-- 

Steve Peacocke

http://stevepeacocke.blogspot.com/

 

On 03/08/07, Brian Wrigley <bswrigley at xtra.co.nz> wrote:

> Hi Steve,

> 

> ----- Original Message -----

> From: "Steve Peacocke" <steve.peacocke at gmail.com>

> To: "NZ Borland Developers Group - Delphi List" <delphi at delphi.org.nz>

> Sent: Friday, August 03, 2007 8:46 AM

> Subject: Re: [DUG] Thai Baht Symbol - or Hex value to String converted

> 

> 

> > 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).

> 

> By the time that gets to me in Outlook Express, it shows as an uppercase

> beta (chr(223)). Possibly something along the way has converted it to the

> nearest approximation that can be shown on my computer.

> 

> Pound, Euro, Yen and a few others are no problem - there are symbols for

> them among the high characters of most of the common fonts. No such luck

> with the Baht. Even if you encode the Baht character correctly (eg in

> Unicode) most people will still only see either a question mark or a

square

> box unless they are using a suitable code page/font choice combination. In

> Thailand they probably do; elsewhere, you might be out of luck.

> 

> > Therefore, there should be a way that I can display that character in

> > a Label on a form.

> 

> You'd need a label component that uses Widestrings instead of strings, and

> the user would need their machine set up appropriately. Otherwise they'd

see

> question marks or square boxes. You might be better to use a little icon

or

> write the word "Baht".

> 

> > Code Pages? A search of both D2007 and D7 help files produce a zero

> > result on this. Can you elaborate?

> 

> Joel Spolsky explains the whole mess quite entertainingly here

> http://www.joelonsoftware.com/articles/Unicode.html

> 

> 

> Brian

> 

 

_______________________________________________

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

 

Scanned by Bizo Email Filter

 

Scanned by Bizo  <http://www.bizoservices.com/services/email_filter.html>
EmailFilter 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.adventureeducation.co.nz/pipermail/delphi/attachments/20070803/86f061fd/attachment-0001.html


More information about the Delphi mailing list