Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How Do I Add A New Encoding To AmphetaDesk?

amphetadesk encoding
0
Posted

How Do I Add A New Encoding To AmphetaDesk?

0

AmphetaDesk 0.93.2 and above ship with a number of default encodings, which you can see by browsing the lib/XML/Parser/Encodings/ directory. As the name suggests, these all come from the XML::Parser::Encodings Perl module, which also contains some scripts to make your own from encoding maps freely available online. To build your own encoding: • Download encoding.txt from ftp://ftp.unicode.org/Public/MAPPINGS/. • Run make_encmap encoding encoding.txt > encoding.encmap. • Add expat=”yes” on the document element in encoding.encmap. • Run compile_encoding -o encoding.enc encoding.encmap. Once you’ve got the encoding.enc file, drop it into lib/XML/Parser/Encodings/ and test it out on a feed that requires it. If everything goes smoothly, drop the encoding into an email to morbus@disobey.com for inclusion into a future release. Thanks to Klaus Johannes Rusch.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123