Character encoding (TCG GB)
|This section is incomplete.|
Please feel free to edit this section to add missing information and complete it.
Reason: Missing kanji blocks.
This is the character encoding in Pokémon Trading Card Game and Pokémon Trading Card Game 2: The Invasion of Team GR!.
In the American and European versions of Pokémon Trading Card Game, the area between hexadecimal 20 and 7F is based on ASCII, which includes letters, numbers, and some punctuation. However, both versions of this game only have capital letters. In the American version, the ASCII codepoints for small letters simply represent equal duplicates of the capital letters. In the European version, the ASCII codepoints for small letters are replaced by some characters required for the European languages, including this set of capital letters with diacritics: À, Á, Ä, É, È, Í, Ì, Ñ, Ò, Ó, Ö, Ù, Ú, and Ü.
For instance, the ASCII codepoints 4D and 6D represent the capital "M" and the small "m", respectively. However, in the American version of this game, both 4D and 6D equally represent the capital "M". In the European version, 4D remains as the capital "M", but 6D is replaced by "Ú". The letter "É" is a special case, which is found in words such as "Pokémon", "Pokédex", and "Poké Ball". In the American version, the capital letter "É" is equally encoded in the hexadecimal codepoints 40 and 60, replacing the ASCII characters "@" and "`". In the European version, the codepoint 40 remains, but the codepoint 60 is replaced by an unused small "é", and the codepoint 65 (which would be the ASCII small "e") becomes a repeated location for the same capital letter "É".
The internal game data of the American version is written in mixed case, which is consistent with ASCII aside from some special characters such as "É" or "é" with accent. However, the ASCII mixed case is ignored in actual gameplay, where the text is actually displayed in capital letters. Some character names, Pokémon species and other terms are internally written in all-caps, such as "Grand Master COURTNEY" and "SQUIRTLE & Friends Deck", but at other times they are inconsistently stored in mixed case such as "Courtney" and "Squirtle" nonetheless.
The internal game data of the American version uses the codepoint 60 for the "É" character (the codepoint 40 is also available and would equally produce "É", but it is not used in this version). Conversely, that character is stored as the codepoint 40 in the European English, French, and Italian versions, and as the codepoint 65 in the Spanish and German versions. The codepoint 60 is not used in the European versions, where it would be displayed as a lowercase "é".
Sometimes, there are other cases of different codepoints producing the same characters.
20–5F: GB1 (American and European)
|GB1 (American and European)|
60–7E: GB1 (American)
60–7E: GB1 (European)
0330–0463: GB1 (Japanese)
When the player types capital letters in the Japanese version of the first game, they are taken from the 0330–0349 portion of this area.
This area contains an incomplete set of hiragana characters, which is cut off at づ (04FF). When the player types small letters in the second game, they are taken from 042A–0443.
0501–0537: GB1 (all languages)
|GB1 (all languages)|
0E10–0E79: GB1 (Japanese) and GB2
When the player uses the text entry interface in the Japanese version of both games, the hiragana characters are taken from this area.
|GB1 (Japanese) and GB2|
0F10–0F79: GB1 (Japanese) and GB2
When the player uses the text entry interface in the Japanese version of both games, the katakana characters are taken from this area.
|GB1 (Japanese) and GB2|
|This article is part of both Project Sidegames and Project TCG, Bulbapedia projects that, together, aim to write comprehensive articles on TCG-related video games.|