Permalink
Browse files

Also convert ISO-8859-1 text to UTF-8 to match the sample

  • Loading branch information...
1 parent 8d3cbbc commit 652b2f094d12d5a80d9851728513bac06f5260a1 @drbrain drbrain committed Jun 8, 2011
Showing with 6 additions and 6 deletions.
  1. +3 −3 README
  2. +3 −3 README.rdoc
View
6 README
@@ -207,7 +207,7 @@ incompatibility are:
Example:
xml = Builder::Markup.new
- xml.sample("I�t�rn�ti�n�l")
+ xml.sample("Iñtërnâtiônàl")
xml.target! =>
"<sample>I&#241;t&#235;rn&#226;ti&#244;n&#224;l</sample>"
@@ -218,9 +218,9 @@ incompatibility are:
$KCODE = 'UTF8'
xml = Builder::Markup.new
xml.instruct!(:xml, :encoding => "UTF-8")
- xml.sample("I�t�rn�ti�n�l")
+ xml.sample("Iñtërnâtiônàl")
xml.target! =>
- "<sample>I�t�rn�ti�n�l</sample>"
+ "<sample>Iñtërnâtiônàl</sample>"
== Contact
View
@@ -203,7 +203,7 @@ incompatibility are:
Example:
xml = Builder::Markup.new
- xml.sample("I$-1¶Æt(5k(Brn¶¨ti¶Én¶¦l")-A
+ xml.sample("I$-1¶Æt(5k(Brn¶¨ti¶Én¶¦l")-A
xml.target! =>
"<sample>I&#241;t&#235;rn&#226;ti&#244;n&#224;l</sample>"
@@ -214,9 +214,9 @@ incompatibility are:
$KCODE = 'UTF8'
xml = Builder::Markup.new
xml.instruct!(:xml, :encoding => "UTF-8")
- xml.sample("I$-1¶Æt(5k(Brn¶¨ti¶Én¶¦l")-A
+ xml.sample("Iñtërnâtiônàl")
xml.target! =>
- "<sample>I$-1¶Æt(5k(Brn¶¨ti¶Én¶¦l</sample>"-A
+ "<sample>Iñtërnâtiônàl</sample>"
== Links

0 comments on commit 652b2f0

Please sign in to comment.