Click here to Skip to main content
15,886,919 members
Home / Discussions / Java
   

Java

 
AnswerRe: Java strings Pin
Richard MacCutchan4-Dec-23 22:17
mveRichard MacCutchan4-Dec-23 22:17 
GeneralRe: Java strings Pin
Andre Oosthuizen5-Dec-23 8:47
mveAndre Oosthuizen5-Dec-23 8:47 
GeneralRe: Java strings Pin
Richard MacCutchan5-Dec-23 9:26
mveRichard MacCutchan5-Dec-23 9:26 
AnswerRe: Java strings Pin
jschell5-Dec-23 5:26
jschell5-Dec-23 5:26 
GeneralRe: Java strings Pin
trønderen5-Dec-23 11:29
trønderen5-Dec-23 11:29 
GeneralRe: Java strings Pin
jschell6-Dec-23 6:33
jschell6-Dec-23 6:33 
GeneralRe: Java strings Pin
trønderen6-Dec-23 9:53
trønderen6-Dec-23 9:53 
GeneralRe: Java strings Pin
jschell7-Dec-23 4:43
jschell7-Dec-23 4:43 
trønderen wrote:
Java uses a subset of UTF-16 that excludes surrogate pairs


Ah...I wondered why your comments were so off base. No you are incorrect. It includes surrogate pairs. And it always has.

String (Java Platform SE 8 )[^]

"A String represents a string in the UTF-16 format in which supplementary characters are represented by surrogate pairs" 


Matter of fact you can also use other languages in the code. Also something that has always been possible.

Java: Unicode in Source Code[^]

I am going to ignore the rest of your comments related to that since your initial assumption was wrong.

-----------------------------------------

trønderen wrote:
You may notice that English is a well known...


As I already said, I have delivered internationalized products for decades.

And I have delivered products that were specifically limited to the United States. By their very nature.

trønderen wrote:
7-bit ASCII and nothing else to a subgroup of potential customers


Not sure exactly what you are referring to but I work in high volume applications. And thus the size of the data matters. Both on the wire and in storage.

And a lot of text even for international applications is not something that users see. So differentiating between the two is a design consideration.

trønderen wrote:
storing all text in a database as UTF-8;


There are performance implications to doing that.

trønderen wrote:
cannot handle even ISO 8859


And cars didn't have seat belts for decades. Hindsight means nothing.

trønderen wrote:
Write all your software to always be prepared for non-ASCII characters, in any context


Absolutely not.

Just like I would not write an application to support 4 billion users just in case it might happen.

When I write software I get paid for writing it. Not for spinning endlessly about possibilities that very likely might never happen.

And I, perhaps unlike you, have worked on applications which would NEVER be used anywhere else. I am not going to detail that but consider if I had worked on a US defense contract for a nuclear missile. Do you think it will need to support the Russian language?
AnswerRe: Java strings Pin
Gerry Schmitz6-Dec-23 7:50
mveGerry Schmitz6-Dec-23 7:50 
Question<pre>Problems enlarging Eclipse icons Pin
BrunoV202219-Nov-23 10:57
BrunoV202219-Nov-23 10:57 
AnswerRe: <pre>Problems enlarging Eclipse icons Pin
jschell5-Dec-23 5:27
jschell5-Dec-23 5:27 
QuestionHow to convert string to double with trailing zeros after decimal Pin
Member 161354338-Nov-23 1:46
Member 161354338-Nov-23 1:46 
AnswerRe: How to convert string to double with trailing zeros after decimal Pin
Richard MacCutchan8-Nov-23 2:07
mveRichard MacCutchan8-Nov-23 2:07 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
Member 161354338-Nov-23 2:23
Member 161354338-Nov-23 2:23 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
Richard MacCutchan8-Nov-23 2:35
mveRichard MacCutchan8-Nov-23 2:35 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
Dave Kreskowiak8-Nov-23 3:20
mveDave Kreskowiak8-Nov-23 3:20 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
jschell8-Nov-23 6:12
jschell8-Nov-23 6:12 
AnswerRe: How to convert string to double with trailing zeros after decimal Pin
Ralf Meier8-Nov-23 8:02
mveRalf Meier8-Nov-23 8:02 
AnswerRe: How to convert string to double with trailing zeros after decimal Pin
Dave Kreskowiak8-Nov-23 2:23
mveDave Kreskowiak8-Nov-23 2:23 
QuestionHow to use JNI without setting Environment Variables Pin
Valentinor16-Oct-23 0:54
Valentinor16-Oct-23 0:54 
AnswerRe: How to use JNI without setting Environment Variables Pin
Valentinor16-Oct-23 1:42
Valentinor16-Oct-23 1:42 
AnswerRe: How to use JNI without setting Environment Variables Pin
jschell16-Oct-23 4:58
jschell16-Oct-23 4:58 
GeneralRe: How to use JNI without setting Environment Variables Pin
Valentinor16-Oct-23 5:41
Valentinor16-Oct-23 5:41 
GeneralRe: How to use JNI without setting Environment Variables Pin
jschell17-Oct-23 5:47
jschell17-Oct-23 5:47 
GeneralRe: How to use JNI without setting Environment Variables Pin
Valentinor17-Oct-23 19:26
Valentinor17-Oct-23 19:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.