Unicode compatiblity

1 view
Skip to first unread message

data...@gmail.com

unread,
Jan 22, 2008, 1:27:53 PM1/22/08
to inspekt
Hello,

I realize I could go through all the code, but I thought I'd ask it
first; how much of this code was created with Unicode compatibility in
mind?
We're changing alot of existing code and building new code with this
in mind, and when we choose to adapt Inspekt for our filtering of
input it would be a bad choice if it wasn't Unicode compatible :-)

thanks,

Maarten

Ed Finkler

unread,
Jan 22, 2008, 2:36:16 PM1/22/08
to ins...@googlegroups.com
On Jan 22, 2008 1:27 PM, data...@gmail.com <data...@gmail.com> wrote:
>
> Hello,
>
> I realize I could go through all the code, but I thought I'd ask it
> first; how much of this code was created with Unicode compatibility in
> mind?

None of it, so far, has been checked specifically for unicode
compatibility. It relies on the level of compatibility present in the
base PHP functions that are used, which (if I understand correctly)
varies somewhat. Functions that are used to examine and modify strings
include:

preg_match
preg_replace
dirname
realpath
basename
ctype_alnum
ctype_alpha
ctype_digit
ctype_xdigit
ip2long
in_array
str_replace
sscanf
strip_tags

> We're changing alot of existing code and building new code with this
> in mind, and when we choose to adapt Inspekt for our filtering of
> input it would be a bad choice if it wasn't Unicode compatible :-)

I'm really not an expert on handling unicode input, so any help/advice
would be very much appreciated.

--
--
Ed Finkler
http://funkatron.com
AIM: funka7ron
ICQ: 3922133
Skype: funka7ron

Maarten Stolte

unread,
Jan 23, 2008, 4:19:31 AM1/23/08
to ins...@googlegroups.com
Hello,

As to the functions, you might want to check out this page;
http://www.phpwact.org/php/i18n/utf-8 ; it has helped me alot in
learning about how PHP handles data with regards to Unicode.
I found this page as well, http://phputf8.sourceforge.net/ , but I
haven't evaluated or used that. I really do hope that php6 is coming
anytime soon now ...

Maarten

Reply all
Reply to author
Forward
0 new messages