[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xml documents which exercise unicode


xml exercise
From: "james anderson" <james.anderson@s...>

> is there a collection of documents available which exercises unicode? 
> something more than the few cases in the conformance suite? 
> something which mixes texts which would have distinct 
> (eg language-specific) 16-bit encodings?

Well, better than nothing is the Chinese XML Now! test suite at
    http://www.ascc.net/xml/test/en/utf-8/index.html

This has small samples in in various encodings (UTF-8, Big5, GB2312),
correcly labelled and sent over MIME with different types.

One difficulty that people have with character sets for exotic scripts,
is that it can be difficult to know when something prints out that it is correct.
So these tests try to clearly only test one thing at a time. For example,
http://www.ascc.net/xml/test/wf/utf-8/text_plain/zh-utf8-8.txt is

 <?xml version="1.0" encoding="UTF-8" ?> 
<test type="io8">
  <name>Chinese Test #8: UTF-8</name> 
  <data>This file has 1 Chinese character, directly entered.</data> 
  <data>The XML header of this file is <?xml encoding="UTF-8"?>.</data> 
  <data>The character is here: [中] It is the Chinese character for middle. 
   It should look like a box with a vertical line through its middle.</data> 
  </test>

so there is only one non-ASCII character involved.  (I don't know whether
this example will get through by mail!)



Cheers
Rick Jelliffe

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.