C
Claus Folke Brobak
Hi,
Running Ruby/JRuby 1.8.7 on Windows XP.
Until now I have been using the RDoc version built into the Ruby
Standard Library. That is version 1.0.1. Now I am trying out RDoc 3.4,
installed via a gem.
I have run into a problem with the double quote chracter. Example code:
RDoc 1.0.1
require 'rdoc/markup/simple_markup'
require 'rdoc/markup/simple_markup/to_html'
sm =3D SM::SimpleMarkup.new()
th =3D SM::ToHtml.new()
puts sm.convert('=C3=A6=C3=A6=C3=A6"=C3=B8=C3=B8=C3=B8"=C3=A5=C3=A5=C3=A5=
', th)
Output:
<p>
=C3=A6=C3=A6=C3=A6"=C3=B8=C3=B8=C3=B8"=C3=A5=C3=A5=C3=A5
</p>
RDoc 3.4
require 'rubygems'
require 'rdoc/markup/to_html'
puts RDoc::Markup::ToHtml.new().convert('=C3=A6=C3=A6=C3=A6"=C3=B8=C3=B8=
=C3=B8"=C3=A5=C3=A5=C3=A5')
Output:
<p>=C3=A6=C3=A6=C3=A6=C3=A2=E2=82=AC=C5=93=C3=B8=C3=B8=C3=B8=C3=A2=E2=82=
=AC=C2=9D=C3=A5=C3=A5=C3=A5</p>
It seems as if RDoc 3.4 is adding a double quote in UTF-8 encoding
instead of """. Running on Windows XP, the normal encoding is
Windows-1252. If I look at the HTML and tell the browser that it is
UTF-8 encoded, the double quotes are displayed correctly. Then, however,
the Danish national characters (=C3=A6=C3=B8=C3=A5) are not displayed as =
they should.
Do you think I have hit a bug in Rdoc 3.4, or am I missing something?
Claus
-- =
Posted via http://www.ruby-forum.com/.=
Running Ruby/JRuby 1.8.7 on Windows XP.
Until now I have been using the RDoc version built into the Ruby
Standard Library. That is version 1.0.1. Now I am trying out RDoc 3.4,
installed via a gem.
I have run into a problem with the double quote chracter. Example code:
RDoc 1.0.1
require 'rdoc/markup/simple_markup'
require 'rdoc/markup/simple_markup/to_html'
sm =3D SM::SimpleMarkup.new()
th =3D SM::ToHtml.new()
puts sm.convert('=C3=A6=C3=A6=C3=A6"=C3=B8=C3=B8=C3=B8"=C3=A5=C3=A5=C3=A5=
', th)
Output:
<p>
=C3=A6=C3=A6=C3=A6"=C3=B8=C3=B8=C3=B8"=C3=A5=C3=A5=C3=A5
</p>
RDoc 3.4
require 'rubygems'
require 'rdoc/markup/to_html'
puts RDoc::Markup::ToHtml.new().convert('=C3=A6=C3=A6=C3=A6"=C3=B8=C3=B8=
=C3=B8"=C3=A5=C3=A5=C3=A5')
Output:
<p>=C3=A6=C3=A6=C3=A6=C3=A2=E2=82=AC=C5=93=C3=B8=C3=B8=C3=B8=C3=A2=E2=82=
=AC=C2=9D=C3=A5=C3=A5=C3=A5</p>
It seems as if RDoc 3.4 is adding a double quote in UTF-8 encoding
instead of """. Running on Windows XP, the normal encoding is
Windows-1252. If I look at the HTML and tell the browser that it is
UTF-8 encoded, the double quotes are displayed correctly. Then, however,
the Danish national characters (=C3=A6=C3=B8=C3=A5) are not displayed as =
they should.
Do you think I have hit a bug in Rdoc 3.4, or am I missing something?
Claus
-- =
Posted via http://www.ruby-forum.com/.=