• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XML beginner question (about special characters display)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 &aacute;), 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 &aacute; 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 [&aacute; or ASCII character 135 or "accented a"] or
[&copy;] or [&ntilde;] 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.

References: 
 >XML beginner question (about special characters display) (From: JJ <email@hidden>)

  • Prev by Date: Re: Is it possible to set up an 'instant' idle handler
  • Next by Date: [ANN] ASTest 0.4
  • Previous by thread: XML beginner question (about special characters display)
  • Next by thread: Re: XML beginner question (about special characters display)
  • Index(es):
    • Date
    • Thread