Re: Unicode Help
Re: Unicode Help
- Subject: Re: Unicode Help
- From: Jon Pugh <email@hidden>
- Date: Wed, 2 Jul 2003 10:32:11 -0700
At 9:59 AM -0600 7/2/03, Michael Hartman wrote:
>
"Space-Saver Cooling Rack Triples In Size!
>
A. One-piece design slides open and closed, adjusting from 14"x1"x14<00BD>"
>
to 36" long, with nothing to fit together, come apart or lose. Chrome-plated
>
steel; dishwasher safe. #24150$19.95
>
>
>
>
The code is in <####>
>
>
How do I translate this?
I used Google (in Klingon):
http://www.google.com/search?q=unicode+character+set+00BD&ie=ISO-8859-1&hl=xx-klingon&btnG=Google+nej
This particular character is the 1/2 symbol.
Translate it however you like. I prefer ".5" myself, but HTML fans like "½". Are you prepared to translate all the rest of the unicode character set that doesn't appear in ASCII too?
Which begs the question of whether there is any standard Unicode to multi-character ASCII conversion code that people are using. Hmm, let's consult Mr. Google again.
I don't see such a thing, and then thinking about it, I realize that you cannot do a comprehensive Unicode to ASCII conversion because of the number of non-Roman characters available, so any conversion will be context specific.
In your case, you'll need to maintain a table of Unicode characters you are likely to encounter and the translations you would like to use. That shouldn't be too tough, unless it needs to be user customizable.
Jon
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Unicode Help (From: Michael Hartman <email@hidden>) |