开发者

Changing file encoding from UTF-8 to ANSI

I am creat开发者_开发问答ing an xml and .blm file from one set of data, I am taking text data in iso-8859-1 and converting it to UTF-8 using

$desc = iconv("ISO-8859-1", "UTF-8//TRANSLIT", $desc);

This works great for the XML, but those getting the BLM have asked that it be in ANSI. How can I convert the .blm file to ANSI, is there anyway to do it when I am writing to the file? or after I have created the file?


Typically, ANSI is referred to as Windows-1252 (or CP-1252):

$desc = iconv("ISO-8859-1", "WINDOWS-1252", $desc);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜