PHP和KML文件:如何在KML文件中解码utf8编码名?

时间:2022-10-17 08:27:15

I have to parse KML file in PHP. The name of placemarks in the KML file is UTF8 encoded like this:

我必须用PHP解析KML文件。KML文件中的placemarks的名称是这样编码的UTF8:

<name>xD0<U+1ED3>ng ThxE1p</name>

which should be "Đồng Tháp". How can I correctly parse it in PHP? Thank you for your hints.

这应该是“Đồng Thap”。在PHP中如何正确地解析它?谢谢你的提示。

1 个解决方案

#1


0  

As I can see coding is for utf-16. Not utf8 http://www.fileformat.info/info/unicode/char/1ed3/index.htm

正如我所看到的,编码是针对utf-16的。不是utf8 http://www.fileformat.info/info/unicode/char/1ed3/index.htm

#1


0  

As I can see coding is for utf-16. Not utf8 http://www.fileformat.info/info/unicode/char/1ed3/index.htm

正如我所看到的,编码是针对utf-16的。不是utf8 http://www.fileformat.info/info/unicode/char/1ed3/index.htm