[PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Jean-Christian Imbeault
I am hoping that someone can help can japanese user input into my pgsql database ... I am still having trouble but am sure it is a simple thing; something about mbstring probably. I tried to directly insert user input into my DB but I got the following error: Warning: PostgreSQL query failed:

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! As for deciding what your user language/charset requests are (in terms of his/her browser settings) you might use this function // this function remains unchanged. It returns an array // 0 : negotiated charset // 1 : negotiated lancode function

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Jean-Christian Imbeault
Thanks for the ideas Alberto but what I relly want is to understand how to use the mbstring library, not how to implement a new solution. mbstring is supposed to do everything I want, I guess I am just not quite understanding how to use it yet. Also in regard to some things you said, Now,

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: Impossible, though it would be nice. Postgres can only accept one charset for it's input not multiple. I hope you mean one charset per language. Otherwise I can just cancel POstgres from my list of usable engines. But yes, it can't be just one.

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: My page is always in the same charset, the problem is that the user input might not be ... Okay, I went thru a bit of docs on the japanese multibyte problem and got some surface understanding of the problem. Yes, since char dimensions are going to be

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Jean-Christian Imbeault
Alberto Serra wrote: I hope you mean one charset per language. Otherwise I can just cancel POstgres from my list of usable engines. But yes, it can't be just one. I'm no pgsql expert but I think that yes, it will only accept input in one charset. But for charsets that use only 8-bits I

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Jean-Christian Imbeault
Alberto Serra wrote: I'll be extending an existing content-repository to add chinese text management in the winter so I'll better start to worry about it. Worry and worry a lot ... As for your problem, I am afraid you would better turn to a japanese programmers' mailing list.