Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

README and README.rdoc need to be tagged with an encoding as they are not 7-bit ASCII compatible #8

Merged
merged 2 commits into from

4 participants

@drbrain

I added a coding line to the top of each file and switch the UTF-8 example code at the bottom from ISO-8859-1 to US-ASCII. This will fix the following error when building RDoc for builder:

Installing ri documentation for builder-3.0.0…
unable to convert "\xF1" from ASCII-8BIT to UTF-8 for README, skipping
unable to convert "\xF1" from ASCII-8BIT to UTF-8 for README.rdoc, skipping

See also: rdoc/rdoc#43

@ddebernardy

Reported here too:

rails/rails#1958

@intern

Why this issues?

@jimweirich jimweirich merged commit a1d41f1 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 6 deletions.
  1. +4 −3 README
  2. +4 −3 README.rdoc
View
7 README
@@ -1,3 +1,4 @@
+# coding: UTF-8
= Project: Builder
== Goal
@@ -206,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>"
@@ -217,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
7 README.rdoc
@@ -1,3 +1,4 @@
+# coding: UTF-8
= Project: Builder
== Goal
@@ -202,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>"
@@ -213,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
Something went wrong with that request. Please try again.