Reputation: 91
what is the charset for spanish windows?
Upvotes: 9
Views: 28283
Reputation: 1412
Not 100% on topic but probably very useful to some who will arrive here by a Google search, as I did: ÁáÉéÍíÓóÚúÑñ¡¿
Upvotes: 0
Reputation: 108
include meta tage in header file.
<meta charset="iso-8859-1">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
Upvotes: -1
Reputation: 506
The only correct, acceptable character set nowadays is the Universal Character Set (UCS), and the only correct, acceptable encodings are Unicode Transformation Formats (UTF).
One of the worst misfeatures Windows has is a silly notion of a locale having several character sets and encodings associated to it: an 8-bit legacy so-called "OEM" character set that comes from the DOS days, an 8-bit legacy so-called "ANSI" character set that comes from the early Windows days, and so-called "wide character" UTF-16 Little-Endian, which is what Windows supports when applications are "Unicode". While the former so-called "OEM" thing is left for DOS applications, most of the Windows API is annoyingly duplicated with "A" (ANSI) functions and W (wide char) functions.
In the case of the Spanish locale, the "OEM" character set is CP850, the "ANSI" character set is CP1252, and of course there's UTF-16 Little-Endian which is what you should be using.
My recommendation is that you avoid CP1252 and CP850 like the plague and use UTF-16LE, as well as develop your applications with Unicode semantics and conventions. Some applications also support UTF-8, which is more convenient for European languages.
Upvotes: 11