Question

In: Computer Science

What is the relationship between the ASCII Latin-1 character set and its Unicode equivalent that makes...

What is the relationship between the ASCII Latin-1 character set and its Unicode
equivalent that makes conversion between the two simple?

Solutions

Expert Solution

The relationship between the American Standard Code for Information Interchange (ASCII) Latin-1 character set, and its Unicode equivalent what makes conversion between the two simple is:

Encodings need not have to handle every possible Unicode character, and in fact, most encodings do not. The rules for converting a Unicode string into the ASCII encoding are simple.

In character data, Unicode is a two-byte extension of the one-byte ISO Latin-1 character set, which in turn is an eight-bit superset of the seven-bit ASCII character set.

Latin-1 character set or encodings is also called as ISO-8859-1 or 8859, which is a similar encoding. Unicode code points ranging from 0 to 255 are identical to the Latin-1 values. Hence, converting to this encoding is simple due to the fact, it requires converting code points to byte values. In case, a code point is larger than 255 that is encountered, the string cannot be and is not encoded into Latin-1. Here, encodings are simple as it is a one-to-one mapping in Latin-1.

The first 256 characters of Unicode- the characters whose high-order byte is zero are identical to the characters of the ISO Latin-1 character set. Thus, 65 is ASCII A and Unicode A, 66 is ASCII B and Unicode B, and it goes on.


Related Solutions

this need to import Java.util.Scanner; // Display every character between Unicode 65 and 122 // Start...
this need to import Java.util.Scanner; // Display every character between Unicode 65 and 122 // Start new line after 20 characters public class DebugSix2 { public static void main(String args[]) { char letter; int a; final int MIN = 65; final int MAX = 122; final int NUMPERLINE = 200; final int STOPLINE1 = 0; final int STOPLINE2 = STOPLINE1 + NUMPERLINE; for(a = MIN; a <= MAX; a++) { letter = (char)a; System.out.print(" " + letter); if((a == STOPLINE1)...
What is the relationship between the budget set and wage? What is the relationship between the...
What is the relationship between the budget set and wage? What is the relationship between the budget set and nonlabor income? What happen to the budget constant if nonlabor income increases? What happen to the budget constant if wage increase? How is the optimal allocation of leisure and money income determined?
What is the relationship between the IMF, The World BAnk, and the Latin American elites in...
What is the relationship between the IMF, The World BAnk, and the Latin American elites in relation to privatization of State enterprises in Latin America?
1) What is the relationship between the market risk of a stock and its expected return?...
1) What is the relationship between the market risk of a stock and its expected return? 2) What is the CAPM? What does it tell you? 3) What is the difference between beta and standard deviation?
What is the relationship between the frequency of light and its color?
What is the relationship between the frequency of light and its color?
What is the relationship between the wealth of a country and the health of its population,...
What is the relationship between the wealth of a country and the health of its population, and what is the relevance to population health? Discuss why you do or do not believe that increased wealth is always associated with increased health. Provide real-world examples to illustrate your points.
What is a SOW? How does a good SOW set a good future relationship between a...
What is a SOW? How does a good SOW set a good future relationship between a buyer and a seller?
WHAT IS THE DIFFERENCE BETWEEN PERSONALITY AND CHARACTER, BETWEEN PRIMARY AND SECONDARY GREATNESS?
WHAT IS THE DIFFERENCE BETWEEN PERSONALITY AND CHARACTER, BETWEEN PRIMARY AND SECONDARY GREATNESS?
What is the relationship between the interest rate and futurevalue? What is the relationship between...
What is the relationship between the interest rate and future value? What is the relationship between the interest rate and present value? You can use intuition, math, or both to explain.
a. What is the relationship between discounting and​ compounding? b. What is the relationship between the​...
a. What is the relationship between discounting and​ compounding? b. What is the relationship between the​ present-value factor and the annuity​ present-value factor? c. What will 4,400 invested for 13 years at 12 percent compounded annually grow to? ii. How many years it will take 570 to grow to 2727.22 if it is invested at 11 percent compounded annually? iii. At what rate would 1500 have to be invested to grow to 6339.35 in 11years?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT