PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 25 → Gravar texto com acentuação
Gravar texto com acentuação
Started by ANDRE MARTINI / IS2, Feb., 26 2016 11:56 AM - 14 replies
Registered member
212 messages
Popularité : +25 (25 votes)
Posted on February, 26 2016 - 11:56 AM
Quando eu estou digitando um novo registro permite colocar acento, mas grava o sistema salva sem acento, o que preciso mudar?

ainda não consegui entender por que acontece isso!

veja as imagens em anexo, quando vou cadastrar a cidade DOIS IRMÃOS o sistema aceita a acentuação, mas depois que grava fica sem o acento.











--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Registered member
44 messages
Popularité : +7 (7 votes)
Posted on February, 26 2016 - 2:15 PM
Se for RAD: procure no código por NoAccent!

--
Analista de Sistemas Jr
Assessor de Comunicação
Fotografo nas horas Vagas
Pai da Alícia e Marido da Andréa <3
Registered member
212 messages
Popularité : +25 (25 votes)
Posted on February, 26 2016 - 5:34 PM
é RAD mas não tem este código NoAccent. pesquisei na opção Home\Find

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Registered member
44 messages
Popularité : +7 (7 votes)
Posted on February, 26 2016 - 7:11 PM
Veja nos componentes do form e também dentro da analise! Provavelmente tem algo nesses pontos!

--
Analista de Sistemas Jr
Assessor de Comunicação
Fotografo nas horas Vagas
Pai da Alícia e Marido da Andréa <3
Registered member
212 messages
Popularité : +25 (25 votes)
Posted on February, 26 2016 - 8:12 PM
tá sinistra a coisa!

fiz uma janela com edt manual e gravei manual o registro e não grava com acento. mudei no analysis marcando a opção [accent sensitive] e não gravou com acento.

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Registered member
212 messages
Popularité : +25 (25 votes)
Posted on February, 26 2016 - 8:24 PM
gravei direto daí gravou com acento:
Cidades.Codigo_da_cidade = 23
Cidades.Nome_da_cidade = "PETRÓPOLIS"
Cidades.UF = "RS"
HAdd(Cidades)


porém no componente table não exibe correto o acento, fica um caracter estranho "PETRΣPOLIS" se for alterar o registro fica com o mesmo problema no edt

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Registered member
212 messages
Popularité : +25 (25 votes)
Posted on February, 26 2016 - 8:25 PM
obs. sei que gravou com acento porque olhei no hfsql control center

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Registered member
44 messages
Popularité : +7 (7 votes)
Posted on February, 26 2016 - 9:27 PM
Amigo, já tentou aqui neste campo?

--
Analista de Sistemas Jr
Assessor de Comunicação
Fotografo nas horas Vagas
Pai da Alícia e Marido da Andréa <3
Registered member
44 messages
Popularité : +7 (7 votes)
Posted on February, 26 2016 - 9:28 PM




--
Analista de Sistemas Jr
Assessor de Comunicação
Fotografo nas horas Vagas
Pai da Alícia e Marido da Andréa <3
Registered member
212 messages
Popularité : +25 (25 votes)
Posted on March, 01 2016 - 12:37 AM
no meu projeto tem 02 idiomas nesta tela nesta ordem:

English
Brazilian Portuguese


O que devo fazer nesta tela?

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Registered member
212 messages
Popularité : +25 (25 votes)
Posted on March, 01 2016 - 12:49 AM
Fiz um projeto novo só de teste somente com Brazilian Portuguese e funcionou, o que precisa ser alterado para funcionar acentuação no multilingue?

no projeto com 02 idiomas tem o seguinte código após escolher o idioma:

SWITCH RADIO_languague
CASE 1: // Inglês
Nation(nationEnglish)
CASE 2: // Português Brasil
Nation(nationBrazilianPortuguese)
ChangeCharset(charsetGreek)
ChangeKeyboard(charsetGreek)
END
Close(WIN_language)


Obs.: esta janela é aberta no código do projeto "Initializihg Projeto"

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Registered member
44 messages
Popularité : +7 (7 votes)
Posted on March, 01 2016 - 7:17 PM
Remova a língua inglesa, caso não for multi-língua e deixe apenas isto...
ChangeCharset(charsetDefault)


--
Analista de Sistemas Jr
Assessor de Comunicação
Fotografo nas horas Vagas
Pai da Alícia e Marido da Andréa <3
Registered member
212 messages
Popularité : +25 (25 votes)
Posted on March, 01 2016 - 8:27 PM
Muitíssimo obrigado pela ajuda.

Deixei multi-lingue e apenas mudei de:
ChangeCharset(charsetGreek)
ChangeKeyboard(charsetGreek)

para
ChangeCharset(charsetDefault)


... e funcionou! Este é um projeto de exemplo, não tinha necessidade de ter 02 idiomas, mas valeu o aprendizado.

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Registered member
44 messages
Popularité : +7 (7 votes)
Posted on March, 02 2016 - 2:01 PM
POSITIVOOOOO :D

--
Analista de Sistemas Jr
Assessor de Comunicação
Fotografo nas horas Vagas
Pai da Alícia e Marido da Andréa <3
Registered member
3,659 messages
Popularité : +175 (223 votes)
Posted on March, 15 2016 - 6:37 PM
Prezados,

Em resumo para tirar a acentuação numa importação use:

Campo = NoAccent( UTF8ToString( NovoTexto ) )

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.blogspot.com.br/