Hi all,
Finally, I solved my problem, it depend on my MySQL, just add:
mysql_query("SET NAMES 'utf8'");
before my Query... ;-(
Thanks for all!

On Tue, Dec 1, 2009 at 10:25 PM, Nhat Minh <[email protected]> wrote:

> Attach here is my database and my XML. Tks for your read !
>
>
> On Mon, Nov 30, 2009 at 6:08 PM, Nhat Minh <[email protected]> wrote:
>
>> Hi Arclyte, Peter !
>> At first, thanks for your answer.
>> I think maybe it belongs to my XML Parse?
>> Because in this example, it was made for PHP4, not PHP5:
>> "$doc = domxml_new_doc("1.0");
>> $node = $doc->create_element("markers");
>> $parnode = $doc->append_child($node);
>> ...
>> "
>> After that, I try to use DOM for PHP5, but everything's still the same.
>> And there is one more issue I need help is Serverside Encode and
>> Clientside Encode, is it important in this problem?
>> Now, I have 4 places to put my encode.
>> + First, in my index.php (my DOCTYPE - also utf-8) - I've tried to change
>> it into "ISO-8859-1", but no effect :-(
>> + After that, when I write my XML and return it by AJAX. (I use
>> utf8_encode() when I write String include unicode).
>> + Then, in my XML TYPE <?xml version="1.0" encoding="utf-8"?>
>> + And the end, in my Database, I also use unicode to save that string.
>> Do you have any idea? Or may be I was wrong in some places I put my code..
>> Pls help me.
>> Tks alot !
>> PS. If it belongs to XML Parser, could you suggest to me some parser that
>> support Unicode?
>>
>>
>> On Mon, Nov 23, 2009 at 9:53 AM, arclyte <[email protected]> wrote:
>>
>>> If you have a sample we could check it'd make it easier to know what's
>>> wrong.  I had a similar error recently and it turned out to be that my
>>> DOCTYPE tag was describing the doc as ISO-8859-1 instead of UTF-8.
>>> That'd be the easiest place to check first, methinks.
>>>
>>>
>>> On Nov 22, 5:23 am, Zero-Ming <[email protected]> wrote:
>>> > Hi all,
>>> > I've made my Maps project some days. I have some marker, and it have a
>>> > description, I save my marker's description in MySQL (I use xampp
>>> > 1.71), and it's type is UTF-8.
>>> > When I try to load marker by this way:
>>> http://code.google.com/apis/maps/articles/phpsqlajax_v3.html
>>> > in Google demo, my description cannot display well, it include some
>>> > question (?) in the text.
>>> > Although I use utf8_encode(str), it make a change : "? L?t" to: "?à L?
>>> > t". How can I remove this "?" and make it the same in my database ?
>>> > Thanks for your read, pls help me about this error !
>>>
>>> --
>>>
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Maps JavaScript API v3" group.
>>> To post to this group, send email to
>>> [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<google-maps-js-api-v3%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-maps-js-api-v3?hl=.
>>>
>>>
>>>
>>
>

--

You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Reply via email to