Re: Rép: Unicode versus Utf8
Re: Rép: Unicode versus Utf8
- Subject: Re: Rép: Unicode versus Utf8
- From: Emmanuel LEVY <email@hidden>
- Date: Sun, 5 Jul 2009 22:22:17 +0200
I get yet another result with Satimage.osax:
escapeURL (resolve entities "Pages ’06")
returns:
"Pages ’06"
Emmanuel
On Jul 5, 2009, at 9:37 PM, Philip Aker wrote:
On 2009-07-05, at 12:30:55, Philip Aker wrote:
On 2009-07-05, at 12:04:32, Yvan KOENIG wrote:
I assumes that there is no way to convert directly
"Pages ’06"
into
"Pages ₩06"
I'm getting slightly different results for Perl and Tcl.
set urichars to "Pages ’06"
do shell script "perl -MURI::Escape=uri_escape_utf8 -le 'print
uri_escape_utf8(\"" & urichars & "\")'"
do shell script "tclsh <<< 'package require uri::urn;puts [uri::urn::quote
{" & urichars & "}]'"
Look like the (new) Perl one is your best choice.
Well, no. With either choice, you're going to have to extract the
unicode entities all by yourself :-)
The difference between the two is that Perl is escaping the
semicolon. I'll have to check the RFC to see if that's necessary.
set urichars to "Pages ’06"
do shell script "perl -MURI::Escape=uri_escape_utf8 -le 'print
uri_escape_utf8(\"" & urichars & "\")'"
--> "Pages ’06"
do shell script "tclsh <<< 'package require uri::urn;puts [uri::urn::quote
{" & urichars & "}]'"
--> "Pages ’06"
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden