From: James Gray Date: 2009-04-16T03:31:09+09:00 Subject: Re: Ruby 1.9.1 - invalid multibyte escape: // (RegexpError) On Apr 8, 2009, at 9:47 AM, James Gray wrote: > On Apr 8, 2009, at 3:03 AM, Brian Candler wrote: > >> * What about string literals which include escape sequences like \u? >> This seems to override the source encoding rule. > > I plan to cover this in the next article. > >> * What encoding is chosen for regexp literals? (Seems to be different >> rules to string literals). What about string literals which include >> #{interpolation}? What about regexp literals which include >> #{interpolation}? > > I'm going to cover this too. > >> * I think it will be worth explaining what you need to do to handle >> binary data (using "rb" and "wb", the ASCII-8BIT encoding, how to set >> external encoding for STDIN, the fact that read() and gets() return >> different encodings for the same data...) > > Planned for the next article. I've added a new post to my m17n series covering all of the above and more: http://blog.grayproductions.net/articles/miscellaneous_m17n_details James Edward Gray II