帮助:需要将windows-874转换为UTF-8的功能 [英] Help: Need function to translate windows-874 to UTF-8
问题描述
大家好!
我需要一个算法来改变windows-874(泰语)编码为
UTF-8,没有使用PHPs iconv或类似的功能。我已经完成了
必要的谷歌搜索和搜索php.net上的笔记,但没有什么
(我能看到)已经出现。
现在我正在寻找解释
windows-874内部工作原理的页面,希望我能够编写算法代码
我自己,但我想我会在这里问最后一个绝望的希望:)
任何编程语言都可以。我会把它翻译成PHP。
你的希望,
灰色
[x-发布到comp.lang.php''因为我听说你们很棒,即使我
也不订阅:)请回复aww,谢谢。]
Hello all!
I''m in need of an algorithm to change windows-874 (Thai) encoding to
UTF-8, without using PHPs iconv or similar functions. I''ve done the
requisite googling and searching through the notes on php.net but nothing
(that I could see) has turned up.
Right now I''ll be looking for pages explaining the inner workings of
windows-874 in the hopes that I might be able to code the algorithm
myself, but I thought I''d ask here as a last desperate hope :)
Any programming language is fine. I''ll just translate it to PHP.
Yours in hope,
Grey
[x-posted to comp.lang.php ''cause I hear you guys are great, even though I
don''t subscribe :) Please reply in a.w.w, thanks.]
推荐答案
GreyWyvern< SP ********* @ greywyvern.com_am>写道:
GreyWyvern <SP*********@greywyvern.com_am> wrote:
我需要一种算法将Windows-874(泰国)编码改为UTF-8,而不使用PHP iconv或类似功能。
听起来很傻......为什么不在PHP中使用这些优秀的工具。
[thais - > utf8]任何编程语言都可以。我只是将它翻译成PHP。
I''m in need of an algorithm to change windows-874 (Thai) encoding to
UTF-8, without using PHPs iconv or similar functions.
Sounds silly... Why not use these excellent tools in PHP.
[thais -> utf8] Any programming language is fine. I''ll just translate it to PHP.
看一下iconv源代码,它是开放的,它是免费的。如果它支持你的源代码编码,那么算法(或更可能是一个表格)就可以获得
。
- -
Daniel Tryba
Take a look at the iconv source, it''s open and it''s free. If it supports
your source encoding, an alogorithm (or more likely a table) can be
gotten there.
--
Daniel Tryba
2004年4月27日星期二13:14:02 +0000(UTC) ,Daniel Tryba
< ne ******************** @ canopus.nl>写道:
On Tue, 27 Apr 2004 13:14:02 +0000 (UTC), Daniel Tryba
<ne********************@canopus.nl> wrote:
GreyWyvern< SP ********* @ greywyvern.com_am>写道:
GreyWyvern <SP*********@greywyvern.com_am> wrote:
我需要一个算法来改变windows-874(泰国)编码为
UTF-8,而不使用PHP iconv或类似功能。
I''m in need of an algorithm to change windows-874 (Thai) encoding to
UTF-8, without using PHPs iconv or similar functions.
<听起来很傻......为什么不在PHP中使用这些优秀的工具呢。
[thais - > utf8]
Sounds silly... Why not use these excellent tools in PHP.
[thais -> utf8]
任何编程语言都可以。我只是将它翻译成PHP。
Any programming language is fine. I''ll just translate it to PHP.
看看iconv源,它是开放的,它是免费的。如果它支持你的源代码编码,那么alogorithm(或者更可能是一个表格)可以在那里得到。
Take a look at the iconv source, it''s open and it''s free. If it supports
your source encoding, an alogorithm (or more likely a table) can be
gotten there.
如果可以的话我会的,我实际上已经要求我的主人安装这些
库。但是为了向后兼容,并且因为iconv是相对较新的PHP函数,因为我需要
这个算法的脚本将是分发到多个服务器
使用不同版本的PHP,我需要捕获所有翻译,这将总是工作
。或者至少回到4.0.x
感谢您的回复,谢谢。
灰色
I would if I could, and I''ve actually asked my host to install these
libraries. But for the sake of backward compatibility, and since iconv is
a relatively new PHP function in the scheme of things, and since I need
this algorithm for a script which will be distributed to multiple servers
with varying versions of PHP, I need a catch all translation which will
work always. Or at least back until 4.0.x
Thanks for you response, tho.
Grey
GreyWyvern< SP ********* @ greywyvern.com_am>写道:
GreyWyvern <SP*********@greywyvern.com_am> wrote:
[thais - > utf8]
[thais -> utf8]
任何编程语言都可以。我只是将它翻译成PHP。
Any programming language is fine. I''ll just translate it to PHP.
看看iconv源,它是开放的,它是免费的。如果它支持你的源代码编码,那么alogorithm(或者更可能是一个表)可以在那里得到。
Take a look at the iconv source, it''s open and it''s free. If it supports
your source encoding, an alogorithm (or more likely a table) can be
gotten there.
如果可以的话,我会的,我实际上已经要求我的主人安装这些库。但是为了向后兼容,并且因为iconv在事物的方案中是一个相对较新的PHP函数,并且因为我需要这个算法用于将分发到多个服务器的脚本
使用不同版本的PHP,我需要捕获所有将始终工作的翻译。或者至少回到4.0.x
I would if I could, and I''ve actually asked my host to install these
libraries. But for the sake of backward compatibility, and since iconv is
a relatively new PHP function in the scheme of things, and since I need
this algorithm for a script which will be distributed to multiple servers
with varying versions of PHP, I need a catch all translation which will
work always. Or at least back until 4.0.x
那么是什么让你看不到iconv源?你不需要
任何php支持:)
-
Daniel Tryba
So what is keeping you from looking at the iconv source? You don''t need
any php support for that :)
--
Daniel Tryba
这篇关于帮助:需要将windows-874转换为UTF-8的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!