Mega Code Archive

 
Categories / Ruby / String
 

Scan( u) string with hex value

french = "\xc3\xa7a va" french.scan(/./u) { |c| puts c }