D
duc nguyen
Hello, i'm a newbie. I have a question that how can i get the first
letter of this string: "=C3=A1 is the first letter".
my solution:
But in many case i don't know the size of the first letter.
Any help would be much appreciated.
-- =
Posted via http://www.ruby-forum.com/.=
letter of this string: "=C3=A1 is the first letter".
my solution:
string =3D "=C3=A1 is the first letter"
str =3D string[0..1] # [0..1] because =C3=A1 =3D 2byte
But in many case i don't know the size of the first letter.
Any help would be much appreciated.
-- =
Posted via http://www.ruby-forum.com/.=