GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
Problem with Texfiles in UTF
Problem with Texfiles in UTF
Iniciado por Stephan Wiestner (swissstephan), jan., 12 2006 10:08 AM - 3 respostas
Conecte-se…
Stephan Wiestner (swissstephan)
#1
Publicado em janeiro, 12 2006 - 10:08 AM
Hello
My newest problem is I receive a text file with Filenames in it unfortunately in UTF. I tried all commands documented in the help-File, but it doesn't work. Can anyone tell me how i can open an utf-file, read the textline and translate it to ansicode. At the moment I use
- lcline =Replace(lcline,"ä","ä")
but there are so many special chars in the world, I can't find all of them.
Thanks and kind regards
Stephan
Denunciar
0
0
Stephan Wiestner (swissstephan)
#2
Publicado em janeiro, 12 2006 - 11:59 AM
Just to be more precise it's UTF-8
Hello
My newest problem is I receive a text file with Filenames in it unfortunately in UTF. I tried all commands documented in the help-File, but it doesn't work. Can anyone tell me how i can open an utf-file, read the textline and translate it to ansicode. At the moment I use
- lcline =Replace(lcline,"ä","ä")
but there are so many special chars in the world, I can't find all of them.
Thanks and kind regards
Stephan
Denunciar
0
0
Peter van Vuuren
#3
Publicado em janeiro, 12 2006 - 12:12 PM
Hi,
My newest problem is I receive a text file with Filenames in it unfortunately
in UTF. I tried all commands documented in the help-File, but it doesn't
work. Can anyone tell me how i can open an utf-file, read the textline and
translate it to ansicode. At the moment I use
[...]
Try the UnicodeToAnsi() & AnsiToUnicode() functions with the charsetUTF8
parameter.
--
Peter
Denunciar
0
0
Stephan Wiestner (swissstephan)
#4
Publicado em janeiro, 13 2006 - 7:49 AM
Peter thanks for this idea! This small routine does the job. Thanks again!
PROCEDURE UTF8Replace(pcline)
lcline is string = pcline
lcunicodeline is string UNICODE = AnsiToUnicode(lcline,charsetUTF8)
lcline = UnicodeToAnsi(lcunicodeline,charsetCurrent)
RESULT lcline
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto