[x3d-public] Fwd: X3dToJson.xslt emits non-UTF-8 JSON????

John Carlson yottzumm at gmail.com
Tue Jul 5 08:35:15 PDT 2022


Subject:  "Generating python issue. Windows 10" in

Talks about how Saxon is generating cp1252 pi character, not UTF-8.


---------- Forwarded message ---------
From: John Carlson <yottzumm at gmail.com>
Date: Tue, Jul 5, 2022 at 10:23 AM
Subject: X3dToJson.xslt emits non-UTF-8 JSON????
To: Don Brutzman <brutzman at nps.edu>


I think this is the configuration point.

X3dToJson.xslt:    <xsl:output method="text" encoding="UTF-8"/> <!-- output
methods: xml html text -->

I'm getting JSON files that appear to be cp1252, not UTF-8, and it's
fouling up python processing of JSON.

We have a work around, which is to open JSON files as cp1252 (yuck!) in
python.

I can provide code samples. This is a reminder for when we start up JSON
again.

Meanwhile, cp1252 seems to be working on Windows.

To test, use the greek character called pi (the greek character, not the
word pi) in XML.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220705/54f734b4/attachment.html>


More information about the x3d-public mailing list