php-i18n Digest 1 Mar 2002 03:23:46 -0000 Issue 100
Topics (messages 237 through 240):
Re: multilanguage support
237 by: Yasuo Ohgaki
238 by: Frank M. Kromann
239 by: Yasuo Ohgaki
Help with Arabic form input
240 by: anarchocipher
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Leonid Zilber wrote:
> Hi,
>
> On our site, we have page with a form a user puts his/her information such
> as company name, givenname, etc. Currently, if a name entered is anything
> but English characters, PhP fails.
>
> For example, if I enter Norwegian characters lsløæ PhP returns the following
> errors:
> "Last name field must contain a valid last name"
> etc.
>
> Does anyone know how can I make my PhP code ISO-8859-1 compliant?
>
recode extension. I guess.
--
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
I Have no problem using PHP with ISO-8859-1 characters. I use a lot of Danish
characters.
What part of your PHP script generates that error ? Is it your database ?
- Frank
> Leonid Zilber wrote:
> > Hi,
> >
> > On our site, we have page with a form a user puts his/her information such
> > as company name, givenname, etc. Currently, if a name entered is anything
> > but English characters, PhP fails.
> >
> > For example, if I enter Norwegian characters lsløæ PhP returns the following
> > errors:
> > "Last name field must contain a valid last name"
> > etc.
> >
> > Does anyone know how can I make my PhP code ISO-8859-1 compliant?
> >
>
> recode extension. I guess.
>
> --
> Yasuo Ohgaki
>
>
> --
> PHP Internationalization Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Frank M. Kromann wrote:
> I Have no problem using PHP with ISO-8859-1 characters. I use a lot of Danish
>characters.
>
> What part of your PHP script generates that error ? Is it your database ?
>
> - Frank
Right. I use EUC-JP, UTF-8 without any problems.
I guess poster's php script has something like
if (!eregi("^[a-z]+$", $name)) {
print_error("You entered wrong name");
}
>
>
>>Leonid Zilber wrote:
>>
>>>Hi,
>>>
>>>On our site, we have page with a form a user puts his/her information such
>>>as company name, givenname, etc. Currently, if a name entered is anything
>>>but English characters, PhP fails.
>>>
>>>For example, if I enter Norwegian characters lsløæ PhP returns the following
>>>errors:
>>> "Last name field must contain a valid last name"
>>>etc.
>>>
>>>Does anyone know how can I make my PhP code ISO-8859-1 compliant?
>>>
>>>
>>recode extension. I guess.
>>
>>--
>>Yasuo Ohgaki
>>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
Hello, I am writing software which uses MySQL as a
backend. I need to accept Arabic form input, store it
in MySQL, and use it later. I don't believe MySQL
supports Unicode except in BLOB column types, so I
want to convert it to NCR (numeric character html
entities). After looking at iconv() and recode(), I
think I need to use mb_encode_numericentity(). Some
questions:
1) Does that sound right? Accept Arabic form input and
then use mb_encode_numericentity() to convert it to
html character entities and then store in db?
2) Does anyone know where I can get a conversion map
for Arabic text? I'm still not sure what the encoding
is used by browsers to submit Arabic, iso-8859-6 I am
assuming.
3) Any other words of advice? :)
Thank you for any help! I have spent a lot of time
poring over manuals and technical papers to learn this
i18n stuff but I am stuck with the best way to
implement this in a web application I need to finish
(a non-commercial web project). Thank you!
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com
--- End Message ---