Problem displaying Unicode-char '&#126' in Webview

Put your problem here if it does not fit any of the other categories.

Problem displaying Unicode-char '&#126' in Webview

Postby beaster » Tue Oct 07, 2008 12:35 pm

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.         wv = (WebView) findViewById(R.id.wv1);
  3.  
  4.        
  5.  
  6.         wv.getSettings().setDefaultTextEncodingName("utf-8");
  7.  
  8.        
  9.  
  10.        
  11.  
  12.         wv.loadData("<html><head><title></title></head><body>&#126 ffff<br></body></html>", "text/html", "utf-8");
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Unicode Symdol ~ - It is not displayed!!!!!Help!!!!!!! :!:
beaster
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Oct 07, 2008 10:43 am

Top

Postby cgreen » Tue Oct 07, 2008 1:54 pm

~; ?
localhost is the android emulator
User avatar
cgreen
Experienced Developer
Experienced Developer
 
Posts: 56
Joined: Wed Jul 16, 2008 10:16 am

Postby beaster » Tue Oct 07, 2008 2:57 pm

unicode char
beaster
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Oct 07, 2008 10:43 am

Postby cgreen » Tue Oct 07, 2008 3:53 pm

don't you need the semicolon at the end of the unicode symbol ?`
localhost is the android emulator
User avatar
cgreen
Experienced Developer
Experienced Developer
 
Posts: 56
Joined: Wed Jul 16, 2008 10:16 am

Postby beaster » Tue Oct 07, 2008 7:34 pm

What difference for example it is possible so
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. wv = (WebView) findViewById(R.id.wv1);
  3.  
  4.  
  5.  
  6. wv.loadData("&#126; ", "text/html", "utf-8");
  7.  
  8.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

or
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. wv.loadData("&#126 ", "text/html", "utf-8");
  3.  
  4.  
Parsed in 0.034 seconds, using GeSHi 1.0.8.4


Unicode Symdol - It is not displayed!!!!!>??????
beaster
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Oct 07, 2008 10:43 am

Postby plusminus » Tue Oct 07, 2008 8:17 pm

I'll check that when I'm back home.
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Postby beaster » Wed Oct 08, 2008 11:26 am

Ок! Well! I will understand too
beaster
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Oct 07, 2008 10:43 am

Postby beaster » Wed Oct 08, 2008 12:48 pm

Evrika!: business in a symbol #. And all data which go after it, it is simple not displayed. question why? And how with it to struggle?
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. wv = (WebView) findViewById(R.id.wv1);
  2.  
  3. wv.loadData("~ ", "text/html", "utf-8");
  4.  
Parsed in 0.036 seconds, using GeSHi 1.0.8.4

Not works!
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. wv = (WebView) findViewById(R.id.wv1);
  2.  
  3. wv.loadData("&126; ", "text/html", "utf-8");
  4.  
Parsed in 0.036 seconds, using GeSHi 1.0.8.4

Works!!!!

What to do?

And if to put % - the error message - Web page not available
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. wv = (WebView) findViewById(R.id.wv1);
  2.  
  3. wv.loadData("% ", "text/html", "utf-8");
  4.  
Parsed in 0.036 seconds, using GeSHi 1.0.8.4
beaster
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Oct 07, 2008 10:43 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests