Ir para conteúdo
Fórum Script Brasil
  • 0

Remover Acentuação


hara

Pergunta

Pessoal,

Alguém saberia aonde acho um Script ou alguém sabe como remover a acentuação de um dado postado por formulário ?

Estou com problemas quando o usuário sobe um arquivo que tem acento no nome... Ele até sobe, mas depois não consigo vizualizar pelo navegador...

Agradeço se puderem me ajudar...

Fernando Hara

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

  • 0

Eu fiz um veja:

Sei que tem um modo mais prático pra fazer isso mais lá vai.

$REMOVE_ACENTOS = "$VARIAVEL ";

$REMOVE_ACENTOS = str_replace( "à", "a", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "á", "a", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "â", "a", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ã", "a", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ä", "a", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "è", "e", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "é", "e", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ê", "e", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ë", "e", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ì", "i", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "í", "i", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "î", "i", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ï", "i", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ò", "o", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ó", "o", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ô", "o", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "õ", "o", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ö", "o", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ù", "u", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ú", "u", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "û", "u", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ü", "u", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "À", "A", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Á", "A", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Â", "A", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ã", "A", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ä", "A", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "È", "E", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "É", "E", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ê", "E", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ë", "E", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ì", "I", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Í", "I", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Î", "I", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ï", "I", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ò", "O", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ó", "O", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ô", "O", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Õ", "O", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ö", "O", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ù", "U", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ú", "U", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Û", "U", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ü", "U", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "ç", "c", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "Ç", "C", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "não", "n", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "não", "N", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "´", "", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "`", "", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "¨", "", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "^", "", $REMOVE_ACENTOS);

$REMOVE_ACENTOS = str_replace( "~", "", $REMOVE_ACENTOS);

$VARIAVEL = "$REMOVE_ACENTOS";

$VARIAVEL, é o texto que queria tirar o acento, você sabe né.

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...