Re: XML beginner question (about special characters display)
Re: XML beginner question (about special characters display)
- Subject: Re: XML beginner question (about special characters display)
- From: Paul Skinner <email@hidden>
- Date: Thu, 10 Oct 2002 16:24:06 -0400
The newly released 24U Hex OSAX is a Scripting Addition. It extends
AppleScript by an ability to convert text strings and numbers into a
hexadecimal notation and back. The hexadecimal notation contains only
alphanumeric characters, and so you can utilize it well for transfering
data between platforms and over the Internet. Software engineers and
programers will also benefit from the ability to write simple scripts
for generation of hexadecimal data.
http://www.24uSoftware.com/
set c to ASCII character 135
set c to encode to hexadecimal c providing string value
-->"87"
decode from hexadecimal c providing string value
--"a"
--
Paul Skinner
On Thursday, October 10, 2002, at 03:14 PM, JJ wrote:
Hi all...
My goal is display correctly some special characters at browser (eg,
html
entity á), but I don't know how to do it!
I've seen that it works properly when it is written as UTF-8 (I can't
reproduce the characters at this list, but I'm talking about ASCII
number
135 or á translated to UTF-8). Then, it displays correctly as
(ASCII
character 135) in my browser...
Any magical routine to convert a string to UTF-8? I've been playing a
little
with TEC osax, but I can't find the propper syntax to make it work
right.
Also, can't I convert the special character to hex or different ascii
character to get it rigth displayed?
Some samples with [á or ASCII character 135 or "accented a"] or
[©] or [ñ] would be appreciated...
Tx!
JJ
_______________________________________________
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.