Windows-1252 Text
A Windows-1252 text file using the 0x80–0x9F range (smart quotes, em dash, euro, bullet) that naive Latin-1 decoders get wrong — for testing codepage detection and transcoding.
Windows-1252 (CP1252) sample.
Smart quotes: �curly� �single� � em dash, bullet �.
Euro � and trademark �.
Specifications
- Encoding
- Windows-1252 (CP1252)
- Line Endings
- LF
- Has BOM
- false
- Bytes
- 106
What is a .txt file?
TXT is a plain-text file containing unformatted character data with no styling or structure beyond line breaks. Its interpretation depends on character encoding, most commonly UTF-8, and on line-ending convention. It is the most universal and portable text container.
How to use this file
Use an example TXT to test encoding detection, line-ending (LF versus CRLF) handling, and any tool that reads or streams raw text input.
Related files
- txtCombining Marks (NFC vs NFD) TextA UTF-8 file with the same words in both NFC (precomposed) and NFD (decomposed combining marks) normalisation forms — for testing normalisation-aware comparison, search, and dedup.
- txtEmoji & ZWJ Sequences TextA UTF-8 file of emoji including zero-width-joiner sequences, regional-indicator flag pairs, and skin-tone modifiers — multi-code-point grapheme clusters for testing grapheme segmentation and display-width calculation.
- txtLatin-1 (ISO-8859-1) TextA single-byte Latin-1 (ISO-8859-1) text file using high-range accented characters — for testing legacy 8-bit charset detection and transcoding to UTF-8.
- txtMixed Line Endings TextA UTF-8 text file that deliberately mixes LF, CRLF, and lone-CR line endings within one file — for testing newline normalisation and line-counting logic.
- txtRight-to-Left / Bidi TextA UTF-8 file mixing left-to-right and right-to-left scripts (Arabic and Hebrew alongside English) — for testing bidirectional text handling, reordering, and rendering.
- txtShift-JIS Japanese TextA Shift-JIS encoded Japanese text file — a multi-byte East-Asian encoding, for testing CJK charset detection and Shift-JIS→UTF-8 conversion.
Generated by generation/text_encoding.py. Free for any use, no attribution required — license.