Hi
i create and fill a Map with normal and special charters ("Translate Table")
now i Test but only charters from the Create Map part will be "translate"
e.g. with X (in the Code c is a string Variable), ASCII (Chr) Code is 88 (Log with the ASC funkt.), but with
, result is _ ("Default Value").
Whats Wrong?,
The Map contain all (the Create Map and the For Next
With the Key/Value from Create Map part it works
i create and fill a Map with normal and special charters ("Translate Table")
B4X:
mReplace = CreateMap("À":"A","Á":"A","Â":"A","Ã":"A","Ä":"AE","Å":"A","Ā":"A","Ă":"A","Ą":"A","Ǎ":"A","Ǻ":"A", _
"Æ":"AE","Ǽ":"AE","Ç":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C", "Ð":"D","Ď":"D","Đ":"D", _
"È":"E","É":"E","Ê":"E","Ë":"E","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E", _
"Ĝ":"G","Ġ":"G","Ģ":"G","Ğ":"G","Ĥ":"H","Ħ":"H", _
"Ì":"I","Í":"I","Î":"I","Ï":"I","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","Ǐ":"I", _
"IJ":"J","Ĵ":"J","Ķ":"K","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L", _
"Ń":"N","Ņ":"N","Ň":"N","Ñ":"N", _
"Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"OE","Ø":"O","Ō":"O","Ŏ":"O","Ő":"O","Ơ":"O","Ǒ":"O","Ǿ":"O", _
"Ŕ":"R","Ŗ":"R","Ř":"R","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","Ţ":"T","Ť":"T","Ŧ":"T", _
"Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","Ù":"U","Ú":"U","Û":"U","Ü":"UE","Ư":"U","Ǔ":"U","Ǖ":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U", _
"ß":"ss","Ŵ":"W","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z", _
"à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ā":"ae","ă":"a","ą":"a","ǎ":"a","ǻ":"a", _
"æ":"ae","œ":"ce","ǽ":"ae","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ď":"d","đ":"d", _
"è":"e","é":"e","ê":"e","ë":"e","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","ſ":"f","ƒ":"f", _
"ĝ":"g","ğ":"g","ġ":"g","ģ":"g","ĥ":"h","ħ":"h", _
"ì":"i","í":"i","î":"i","ï":"i","ı":"i","į":"i","ĭ":"i","ī":"i","ĩ":"i","ǐ":"i", _
"ij":"j","ĵ":"j","ķ":"k","ŀ":"l","ľ":"l","ļ":"l","ĺ":"l","ł":"l","ñ":"n","ň":"n","ņ":"n","ń":"n","ʼn":"n", _
"ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ø":"o","ǿ":"o","ō":"o","ŏ":"o","ő":"o","ơ":"o","ǒ":"o", _
"ŕ":"r","ŗ":"r","ř":"r","ś":"s","ŝ":"s","ş":"s","š":"s","ţ":"t","ť":"t","ŧ":"t", _
"ù":"u","ú":"u","û":"u","ü":"ue","ū":"u","ũ":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","ǜ":"u","ǚ":"u","ǘ":"u","ǖ":"u","ǔ":"u","ư":"u", _
"ŵ":"w","ŷ":"y","ý":"y","ÿ":"y","ź":"z","ż":"z","ž":"z", _
"Œ":"CE")
For x=32 To 126 Step 1
mReplace.Put(Chr(x),Chr(x))
Next
now i Test but only charters from the Create Map part will be "translate"
e.g. with X (in the Code c is a string Variable), ASCII (Chr) Code is 88 (Log with the ASC funkt.), but with
B4X:
mReplace.GetDefault(c,"_")
Whats Wrong?,
The Map contain all (the Create Map and the For Next
With the Key/Value from Create Map part it works
Last edited: