Click here to Skip to main content
15,847,264 members
Home / Discussions / Java
   

Java

 
QuestionIntellij Pin
anderson mendes 202312-Dec-23 10:13
anderson mendes 202312-Dec-23 10:13 
AnswerRe: Intellij Pin
Richard MacCutchan12-Dec-23 23:04
mveRichard MacCutchan12-Dec-23 23:04 
QuestionJava strings Pin
mike74114-Dec-23 17:12
mike74114-Dec-23 17:12 
AnswerRe: Java strings Pin
Richard MacCutchan4-Dec-23 23:17
mveRichard MacCutchan4-Dec-23 23:17 
GeneralRe: Java strings Pin
Andre Oosthuizen5-Dec-23 9:47
mveAndre Oosthuizen5-Dec-23 9:47 
GeneralRe: Java strings Pin
Richard MacCutchan5-Dec-23 10:26
mveRichard MacCutchan5-Dec-23 10:26 
AnswerRe: Java strings Pin
jschell5-Dec-23 6:26
jschell5-Dec-23 6:26 
GeneralRe: Java strings Pin
trønderen5-Dec-23 12:29
trønderen5-Dec-23 12:29 
jschell wrote:
In practical business programming, with anything except English
You should not exclude English. Even if you and your company's home is in the USA, and you do all your business correspondence in English, you soon run into partners - persons or organizations - with names or addresses using characters outside 7-bit ASCII. Under some circumstances, simply replacing non-ASCII characters with whatever ASCII character you think resembles the original most closely can lead to misunderstandings and failure to find essential information in a search. Sometimes, the replacement can lead to what is in the original language a rude word, an insult etc.

UTF-8 always could handle the entire Unicode range, and for most of your text (if you don't have any business contacts with non-ASCII names or addresses, it goes for all of it), UTF-8 is just as compact as ASCII (*). If your software uses UTF-16 as an internal format, the best thing is if it can handle surrogates, but you can get a long way with handling the basic plane only. (Until you go crazy with emoticons, using all there is available - but that is not too common in business correspondence).

(*) Certainly: ASCII can be transmitted over a US style 56 kbps digital line, with 7 bits to the character. UTF-8 cannot; it requires 8 bits per byte. Even US digital lines were 8 bits per byte, 64 kbps, but for every 6 byte, the phone switch stole the LSB to use for its communication with other switches, so only 7 of the 8 bits were reliable in data transfer. I don't know whether 56 kbps lines are still used in the US of A (please enlighten me!). If they are, you can send 7-bit ASCII untransformed, but not UTF-8. Most likely, it will be transformed anyway - there is a whole crowd of different standard ways of transforming any data stream to 7-bit bytes. MIME alone provides three alternatives!
GeneralRe: Java strings Pin
jschell6-Dec-23 7:33
jschell6-Dec-23 7:33 
GeneralRe: Java strings Pin
trønderen6-Dec-23 10:53
trønderen6-Dec-23 10:53 
GeneralRe: Java strings Pin
jschell7-Dec-23 5:43
jschell7-Dec-23 5:43 
AnswerRe: Java strings Pin
Gerry Schmitz6-Dec-23 8:50
mveGerry Schmitz6-Dec-23 8:50 
Question<pre>Problems enlarging Eclipse icons Pin
BrunoV202219-Nov-23 11:57
BrunoV202219-Nov-23 11:57 
AnswerRe: <pre>Problems enlarging Eclipse icons Pin
jschell5-Dec-23 6:27
jschell5-Dec-23 6:27 
QuestionHow to convert string to double with trailing zeros after decimal Pin
Member 161354338-Nov-23 2:46
Member 161354338-Nov-23 2:46 
AnswerRe: How to convert string to double with trailing zeros after decimal Pin
Richard MacCutchan8-Nov-23 3:07
mveRichard MacCutchan8-Nov-23 3:07 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
Member 161354338-Nov-23 3:23
Member 161354338-Nov-23 3:23 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
Richard MacCutchan8-Nov-23 3:35
mveRichard MacCutchan8-Nov-23 3:35 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
Dave Kreskowiak8-Nov-23 4:20
mveDave Kreskowiak8-Nov-23 4:20 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
jschell8-Nov-23 7:12
jschell8-Nov-23 7:12 
AnswerRe: How to convert string to double with trailing zeros after decimal Pin
Ralf Meier8-Nov-23 9:02
professionalRalf Meier8-Nov-23 9:02 
AnswerRe: How to convert string to double with trailing zeros after decimal Pin
Dave Kreskowiak8-Nov-23 3:23
mveDave Kreskowiak8-Nov-23 3:23 
QuestionHow to use JNI without setting Environment Variables Pin
Valentinor16-Oct-23 1:54
Valentinor16-Oct-23 1:54 
AnswerRe: How to use JNI without setting Environment Variables Pin
Valentinor16-Oct-23 2:42
Valentinor16-Oct-23 2:42 
AnswerRe: How to use JNI without setting Environment Variables Pin
jschell16-Oct-23 5:58
jschell16-Oct-23 5:58 

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.