Return to Snippet

Revision: 42757
at March 10, 2011 05:32 by miceno


Initial Code
// UTF-8 chars are represented with as much as 4 Integers
String s= "aeiouáéíóú"

s.each{ 
  def value= it.toCharacter() as Integer
  println value
}

Initial URL


Initial Description
Print each char of an UTF-8 string as an Integer

Initial Title
String to Integer

Initial Tags


Initial Language
Groovy