unicode stability

N

nos

Perhaps a bad subject, but what I have is

String s = "012345";
char a = charAt(0);
int x = a;

and the value of x is 48 decimal

I use x in a switch statement

switch (x - 48) {}

question is: is this going to break in
a different Locale?
 
C

Chris Smith

nos said:
String s = "012345";
char a = charAt(0);
int x = a;

and the value of x is 48 decimal
[...]

question is: is this going to break in
a different Locale?

No. Unicode is independent of locale.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
T

Thomas Weidenfeller

nos said:
question is: is this going to break in
a different Locale?

No. That's the nice thing about having one encoding defined for a language.

/Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top