Richard:
The discussion was in February, I looked and couldn't find what I remembered.
So, I'm thinking that the coder sent it to me directly, but I searched my files
and again I came up with nothing -- it's not like me to lose code.
What I remember was a function that took Unicode HEX and produced the html
entities, like those found here:
http://www.roborg.co.uk/html_entities/
I will send you off-list what code I have that comes close, but perhaps the
original author might resubmit his code. It was a fairly simple look-up and
replace table, except the table was very extensive. It was a nice piece of
work.
tedd
PS: For sake of clarification, ASCII ranges only from 0 to 127 DEC (HEX
0-7F).
While 128-255 DEC is commonly referred to as Extended ASCII, it isn't
officially ASCII -- as such, there are differences between OS's (i.e., win v
mac).
However, Unicode includes everything and handles all code-points from 00
to FF and divides those into various char-sets based upon various
criteria (i.e., language, use, etc). So, the new words on the block are
code-point and char-set.
--- previous ---
At 5:08 PM +1000 6/2/06, Richard Luckhurst wrote:
Hi Tedd,
I had a hunt in the archives and couldn't find anything. Do you have any clue
about when it was?
Richard
t At 9:46 AM +1000 6/2/06, Richard Luckhurst wrote:
Hi All
I am in the process of cleaning up an application that was left half
finished. I
am fairly new to PHP so I am seeking the wisdom of the community to help
with a
little problem.
In many cases I need to build command strings to be sent to a backend system.
The strings have to contain a couple of non ascii characters.
I have no problem with the following in a script
$RM=\xFF;
Then using the variable works fine within that chunk of php code.
What I would like to do is place all of the extended ascii characters in one
of
the inc files and just use these in various scripts throughout the
application.
When I try what I get is a test representation rather than the actual ascii
code. Ie I get \xFF instead of the ascii character ÿ
Is there any way to actually do this in php?
Regards,
Richard Luckhurst
Product Development
t Yes, I think there is -- we discussed this a few months ago on this list
and someone wrote a routine to do basically want you want, or so I think -- so
check the archives.
t tedd
t --
t
t http://sperling.com http://ancientstones.com http://earthstones.com
--
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php