[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23183] String Escapes and Encoding

From: James Gray <james@...>
Date: 2009-04-11 22:36:15 UTC
List: ruby-core #23183
I'm trying to document the affects of escapes like \x and \u on String  
Encoding, for the m17n series on my blog.  Here are the rules I'm  
aware of:

* A \x String receives the source Encoding if it's not US-ASCII
* A \x String where the escape creates a byte with the 8th bit set is  
upgraded to ASCII-8BIT if the source Encoding is US-ASCII
* A \u String is also given the Encoding of UTF-8

Do I have those rules right?  Are there other escapes that affect the  
String Encoding?

Thanks for the information.

James Edward Gray II

In This Thread

Prev Next