Re: converting extended chars to plain ascii

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/19/07, ahlist <ahlist@xxxxxxxxx> wrote:
Hello,

A libarary I'm using (the cybersource api if it helps any) is dying
when I pass it "extended" chars - such as bjorn (two dots over the o -
not sure of the actual name of this char -sorry).

For some reason, the newest version of cybersourc's api aborts on this input.

Can anyone recommend a quick way to strip/convert those chars out
before I pass it to cybersources lib?

I store the data as a varchar in mysql and pull it out in a query.

Thanks for ANY advice. I need to get some sort of fix for this asap.

I should add that I'm not using mbyte extension.

Is there any transformation or regex that could replace anything
outside of a-zA-z with another char. I don't need this to be exact.
The db will still hold the original, correct chars. I just need to
feed something to the cybersource lib that is all a-zA-Z

Thanks in advance.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux