[Ajuda] Corrigir acentos
#6

pawn Code:
stock ConverterTexto(texto[])
{
    new string[256];
    for(new i = 0; texto[i]; ++i)
    {
        string[i] = texto[i];
        switch(string[i])
        {
            case 0xC0 .. 0xC3: string[i] -= 0x40;            case 0xC7 .. 0xC9: string[i] -= 0x42;            case 0xD2 .. 0xD5: string[i] -= 0x44;            case 0xD9 .. 0xDC: string[i] -= 0x47;            case 0xE0 .. 0xE3: string[i] -= 0x49;
            case 0xE7 .. 0xEF: string[i] -= 0x4B;            case 0xF2 .. 0xF5: string[i] -= 0x4D;            case 0xF9 .. 0xFC: string[i] -= 0x50;            case 0xC4, 0xE4: string[i] = 0x83;            case 0xC6, 0xE6: string[i] = 0x84;            case 0xD6, 0xF6: string[i] = 0x91;            case 0xD1, 0xF1: string[i] = 0xEC;            case 0xDF: string[i] = 0x96;            case 0xBF: string[i] = 0xAF;
        }
    }
    return string;
}
Reply


Messages In This Thread
Corrigir acentos - by idegod - 22.04.2017, 00:20
Re: Corrigir acentos - by FullStarS - 22.04.2017, 00:29
Re: Corrigir acentos - by OtimoJogo - 22.04.2017, 00:40
Re: Corrigir acentos - by idegod - 22.04.2017, 07:59
Re: Corrigir acentos - by FullStarS - 22.04.2017, 15:24
Re: Corrigir acentos - by connork - 22.04.2017, 15:30
Re: Corrigir acentos - by pedrotvr - 23.04.2017, 00:54
Re: Corrigir acentos - by NathanT - 23.04.2017, 03:05
Re: Corrigir acentos - by pedrotvr - 23.04.2017, 06:43
Re: Corrigir acentos - by NathanT - 23.04.2017, 14:29

Forum Jump:


Users browsing this thread: 2 Guest(s)