How to change text encoded in ANSEL to UTF-8 in C#?
如何在C#中将ANSEL中编码的文本更改为UTF-8?
3 个解决方案
#1
3
This is a non-trivial conversion as Windows/.NET Framework does not have an ANSEL codepage. See here for the travails of another person attempting this conversion.
这是一个非平凡的转换,因为Windows / .NET Framework没有ANSEL代码页。请参阅此处了解尝试此转换的其他人的艰辛。
#2
1
There is an AnselEncoding class (deriving from the standard Encoding class) available as part of Gedcom.NET at http://sourceforge.net/projects/gedcom-net/ that also includes support for some of the LDS extensions.
在http://sourceforge.net/projects/gedcom-net/上有一个AnselEncoding类(从标准的Encoding类派生)作为Gedcom.NET的一部分提供,它还包括对某些LDS扩展的支持。
#3
1
Joshperry is correct. Eichmann's site has basically the ONLY documentation around that attempts to explain ANSEL encoding. Unfortunately there is no program code there, so you'll have to code it yourself.
Joshperry是对的。 Eichmann的网站基本上只有文件,试图解释ANSEL编码。不幸的是那里没有程序代码,所以你必须自己编写代码。
There is another code table (dated Dec 2007 - I didn't know anyone was still interested) for ANSEL at: http://lcweb2.loc.gov/diglib/codetables/45.html which is worthwhile comparing Eichmann's work to, since he did admit there were a few codes he's unsure of.
ANSEL还有另一个代码表(2007年12月 - 我不知道有人还有兴趣):http://lcweb2.loc.gov/diglib/codetables/45.html这是值得比较Eichmann的工作,因为他确实承认有一些他不确定的代码。
If you are interested from a genealogy point of view, the GEDCOM standard release 5.5 has an abbreviated ANSEL character set and some encodings in its Appendix D.
如果您对家谱的观点感兴趣,GEDCOM标准版本5.5在附录D中有一个缩写的ANSEL字符集和一些编码。
Update Sept 2017: Long after my original answer of this question, Tamura Jones wrote an excellent series of articles about ANSEL that are worth checking out:
2017年9月更新:在我对这个问题的原始答案之后很久,田村琼斯写了一篇关于ANSEL的优秀系列文章值得一试:
- GEDCOM ANSEL Table - May 14, 2013
- LDS ANSEL versus LDS ANSEL - May 18, 2013
- ANSEL Administratively Withdrawn - July 8, 2013
GEDCOM ANSEL表 - 2013年5月14日
LDS ANSEL与LDS ANSEL - 2013年5月18日
ANSEL行政撤回 - 2013年7月8日
#1
3
This is a non-trivial conversion as Windows/.NET Framework does not have an ANSEL codepage. See here for the travails of another person attempting this conversion.
这是一个非平凡的转换,因为Windows / .NET Framework没有ANSEL代码页。请参阅此处了解尝试此转换的其他人的艰辛。
#2
1
There is an AnselEncoding class (deriving from the standard Encoding class) available as part of Gedcom.NET at http://sourceforge.net/projects/gedcom-net/ that also includes support for some of the LDS extensions.
在http://sourceforge.net/projects/gedcom-net/上有一个AnselEncoding类(从标准的Encoding类派生)作为Gedcom.NET的一部分提供,它还包括对某些LDS扩展的支持。
#3
1
Joshperry is correct. Eichmann's site has basically the ONLY documentation around that attempts to explain ANSEL encoding. Unfortunately there is no program code there, so you'll have to code it yourself.
Joshperry是对的。 Eichmann的网站基本上只有文件,试图解释ANSEL编码。不幸的是那里没有程序代码,所以你必须自己编写代码。
There is another code table (dated Dec 2007 - I didn't know anyone was still interested) for ANSEL at: http://lcweb2.loc.gov/diglib/codetables/45.html which is worthwhile comparing Eichmann's work to, since he did admit there were a few codes he's unsure of.
ANSEL还有另一个代码表(2007年12月 - 我不知道有人还有兴趣):http://lcweb2.loc.gov/diglib/codetables/45.html这是值得比较Eichmann的工作,因为他确实承认有一些他不确定的代码。
If you are interested from a genealogy point of view, the GEDCOM standard release 5.5 has an abbreviated ANSEL character set and some encodings in its Appendix D.
如果您对家谱的观点感兴趣,GEDCOM标准版本5.5在附录D中有一个缩写的ANSEL字符集和一些编码。
Update Sept 2017: Long after my original answer of this question, Tamura Jones wrote an excellent series of articles about ANSEL that are worth checking out:
2017年9月更新:在我对这个问题的原始答案之后很久,田村琼斯写了一篇关于ANSEL的优秀系列文章值得一试:
- GEDCOM ANSEL Table - May 14, 2013
- LDS ANSEL versus LDS ANSEL - May 18, 2013
- ANSEL Administratively Withdrawn - July 8, 2013
GEDCOM ANSEL表 - 2013年5月14日
LDS ANSEL与LDS ANSEL - 2013年5月18日
ANSEL行政撤回 - 2013年7月8日