Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > German Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

charset=ISO-8859-1 / UTF8 konvertieren

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-15-2011, 03:26 PM
Knows the basics
 
Join Date: May 2011
Location: Austria
Posts: 51
Default charset=ISO-8859-1 / UTF8 konvertieren

Hallo,

ich habe das Problem dass in heruntergeladenem html-code (charset=ISO-8859-1) manche Buchstaben wie ?,ü,ö ... nicht korrekt angezeigt werden wenn ich diesen Code in einer Stringvariablen bzw "*.txt-Datei" speichere. Was ist zu tun damit die Buchstaben korrekt angezeigt werden.

Besten Dank
Walter
Reply With Quote
  #2 (permalink)  
Old 08-15-2011, 06:20 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hallo awama,

ich denke du ladest den html-code ungefähr so:
Code:
Sub HttpString_ResponseSuccess (Response As HttpResponse, TaskId As Int)
    
Dim strFromHtml As String

    strFromHtml = Response.GetString(
"UTF8")
End Sub
Somit wird das String in "UTF8" format convertiert.

Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #3 (permalink)  
Old 08-15-2011, 06:44 PM
Knows the basics
 
Join Date: May 2011
Location: Austria
Posts: 51
Default

Hallo Filippo,

ich verwende httpUtils 1.04.

1.HttpUtils.DownloadList("GET Job2", Job2Links)

2.htmx = HttpUtils.GetString("http://www.....")

Danach sind in htmx die Buchstaben ü,ä, usw "verhunzt".

Werde httpUtils noch genauer unter die Lupe nehmen. Danke vorerst.

Ciao
Walter
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
enconding UTF8 and?? marcomilazzo Basic4android Updates and Questions 6 02-04-2011 09:20 AM


All times are GMT. The time now is 06:31 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0