The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Futurism: Unicode In Ruby

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Red Handed

Posts: 1158
Nickname: redhanded
Registered: Dec, 2004

Red Handed is a Ruby-focused group blog.
Futurism: Unicode In Ruby Posted: Jan 7, 2005 12:11 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Red Handed.
Original Post: Futurism: Unicode In Ruby
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Red Handed
Latest Posts From RedHanded

Advertisement

When asked about the future of Unicode in Ruby 1.9/2.0, Matz replied to Ruby-Core with the following laundry list of features he expects in Ruby’s multibyte character support:

  • characters are represented by single character strings.
  • so that "abc"[0] returns "a" instead of fixnum 97.
  • all string methods are aware of multibyte characters.
  • new method String#encoding gives character encoding name (e.g. "utf-8").
  • new method IO#encoding gives character encoding name for reading data.
  • new method IO#encoding= sets the character encoding for reading data.

A library which emulates this could be built, based on Ruby’s current iconv lib. Anybody want to take a stab at it?

Read: Futurism: Unicode In Ruby

Topic: Learning Ruby on Rails with 43things Previous Topic   Next Topic Topic: “Some amazing web apps appear on Ruby on Rails”

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use