<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Wendell,<br>
<br>
Normally, it should have worked correctly if you had specified an
appropriate encoding for the serialization.<br>
e.g.<br>
<p:serialization port="result" method="text"
encoding="UTF-8"/><br>
If you don't specify an encoding, it's expected for it to use the
default platform encoding.<br>
<br>
However, there is a bug in Calabash in that even if you specify an
encoding, it ignores it and always uses the platform encoding:<br>
<a class="moz-txt-link-freetext" href="https://github.com/ndw/xmlcalabash1/issues/131">https://github.com/ndw/xmlcalabash1/issues/131</a><br>
The bug has already been fixed, but I believe the bugfix is not yet
available in the released version of Calabash (1.0.16).<br>
<br>
I can reproduce this bug with the Calabash 1.0.13 and 1.0.16
standalone (independently from Oxygen), with <b>Saxon 9.5</b>
running on Windows 7. On Windows 7 I have the default file encoding
Cp1250, so it always gets mangled.<br>
<br>
For the standalone Calabash I can easily work around this by forcing
in the Calabash startup script the file encoding with a Java
argument:<br>
-Dfile.encoding="UTF8"<br>
<br>
You can do the same for Oxygen, if this is crucial for you.<br>
For Windows/Linux, edit the corresponding .vmoptions file (e.g.
oxygen15.1.vmoptions) and on a new line add the argument mentioned
above. For For OS X, you have to Ctrl-click(or right click) on the
Oxygen application icon(Oxygen XML Editor.app) in Finder and from
the pop-up menu select Show Package Contents. Then navigate to the
Contents directory and open for editing the 'Info.plist' file. Open
it with 'TextEdit' and look for the key VMOptions. Append the Java
argument that forces the encoding after the last argument
(-XX:MaxPermSize=256m).<br>
<br>
Check if the argument is correctly passed to Oxygen in Help >
About, System properties, file.encoding.<br>
<br>
Note that forcing the default encoding in Oxygen will have some
repercussions. The default encoding for text (non-XML) files will
change to this forced value. You can manually readjust this to the
correct encoding for your platform in Options > Preferences,
Encoding, 'Encoding for non XML files'.<br>
<br>
Let me know if you need further assistance with this.<br>
<br>
Regards,<br>
Adrian<br>
<br>
<br>
<pre class="moz-signature" cols="72">Adrian Buza
oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202
Fax: +40-251-461482
<a class="moz-txt-link-abbreviated" href="mailto:support@oxygenxml.com">support@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a></pre>
<br>
<br>
<div class="moz-cite-prefix">On 21.01.2014 04:53, Wendell Piez
wrote:<br>
</div>
<blockquote
cite="mid:CAAO_-xxdxs6X-P0PqUaiimoRX+P+CyRe8E4R15D=5Rk5n8ACBA@mail.gmail.com"
type="cite">
<pre wrap="">Gerrit, thanks, this is useful info.
It is oXygen v15.1. Sorry about that!
The error isn't just with the results pane, however; it's also in the
file written to disk.
Hm. :-)
Cheers, Wendell
Wendell Piez | <a class="moz-txt-link-freetext" href="http://www.wendellpiez.com">http://www.wendellpiez.com</a>
XML | XSLT | electronic publishing
Eat Your Vegetables
_____oo_________o_o___ooooo____ooooooo_^
On Mon, Jan 20, 2014 at 5:58 PM, Imsieke, Gerrit, le-tex
<a class="moz-txt-link-rfc2396E" href="mailto:gerrit.imsieke@le-tex.de"><gerrit.imsieke@le-tex.de></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Wendell,
this works for me both with p:escape-markup and without when I’m running
Calabash 1.0.13 and 1.0.16 standalone (Saxon 9.4). The version that’s
bundled with oXygen 15.1 seems to be 1.0.13. I don’t know what’s bundled
with oXygen 15.2. Wait – did you say 15.2? With 15.1, I get the same
results as you, i.e., a mangled bullet for p:escape-markup. It seems as
if the assumed encoding for the results window is incorrect in oXygen.
Gerrit
On 20.01.2014 21:25, Wendell Piez wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
Don't ask why I'm doing this; I'd rather not say. :-)
Running this XProc:
<p:declare-step xmlns:p=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/ns/xproc">"http://www.w3.org/ns/xproc"</a> version="1.0">
<p:serialization port="result" method="text"/>
<p:input port="source">
<p:inline>
<doc>Hello bullet: &#x2022;</doc>
</p:inline>
</p:input>
<p:output port="result"/>
<p:wrap name="wrap" match="/" wrapper="wrapper"/>
<p:escape-markup name="escape-wrapped-contents"/>
</p:declare-step>
I am getting:
<doc>Hello bullet: •</doc>
As you can imagine, I'd like to see an honest bullet (U-2022) in the results.
By commenting out the 'escape-markup' step I can see my bullet makes
it through to that point.
I am using Calabash inside oXygen 15.2.
What am I doing wrong? Any hints?
Cheers, Wendell
Wendell Piez | <a class="moz-txt-link-freetext" href="http://www.wendellpiez.com">http://www.wendellpiez.com</a>
XML | XSLT | electronic publishing
Eat Your Vegetables
_____oo_________o_o___ooooo____ooooooo_^
_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<pre wrap="">
--
Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
<a class="moz-txt-link-abbreviated" href="mailto:gerrit.imsieke@le-tex.de">gerrit.imsieke@le-tex.de</a>, <a class="moz-txt-link-freetext" href="http://www.le-tex.de">http://www.le-tex.de</a>
Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930
Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler
_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<pre wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
</body>
</html>