CharacterSetTestCases

The files attached to this topic are complete .txt files suitable for use with Rcs* and PlainFile stores. They contain text suitable for testing different encodings.

To use them,
  1. Make sure the {Site}{CharSet} (or {Store}{Encoding} for Foswiki 2.0) is set to the encoding of the .txt file
  2. Download the file (use 'Save link as', copy-pasting the file content will not work) and install it in the web of your choice
  3. Test it!

Note that these files are used for testing Foswiki 1.1.9 and earlier, and the upgrade to Foswiki 2.0.

Note that cutting and pasting the content of these files is unlikely to work.

If you want to generate a topic with a file name that uses a specific encoding, you can do it like this:

perl -MEncode -e 'use utf8;open(F,">", Encode::encode("iso-8859-1", "ScóòþýDoø.txt"));print F "X"; close(F)'

(assuming your console uses utf8). This is also a useful way to check if a utf-8 character has a codepoint in the target encoding.

If you create any test topics for other encodings, please feel free to upload them here.

BasicForm edit

TopicClassification DeveloperDocumentation
TopicSummary Test cases for testing character encodings in the store
InterestedParties
I Attachment Action Size Date Who Comment
Utf8Form.txttxt Utf8Form.txt manage 841 bytes 01 Jul 2015 - 12:16 CrawfordCurrie A Data Form definition using UTF8 characters
iso-8859-1.txttxt iso-8859-1.txt manage 5 K 01 Jul 2015 - 12:06 CrawfordCurrie 8 bit character set using 160..255 for codepoints
utf-8-accents.txttxt utf-8-accents.txt manage 3 K 01 Jul 2015 - 12:21 CrawfordCurrie Useful table of UTF-8 accented characters
utf-8.txttxt utf-8.txt manage 14 K 01 Jul 2015 - 12:15 CrawfordCurrie Wide character encoding for unicode
Topic revision: r1 - 01 Jul 2015, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy