Mobile Developer

Monday, March 3, 2014

One on android parse json data contains html tags and style display problems


webview tag android html data
I received the label as well as the style of json data contains html because there are "#" symbol of class, cause I can not
 webview.loadDataWithBaseURL (null, contentHtml, "text / html", "utf-8", null); 


Turn out well contains

likeI use webview not?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
json data is this:

 {"content": "

\ r \ n \ t \ r \ n2013 \ u5e7410 \ u670823 \ u65e5 \ r \ n <\ / p> "}


Find Great God help! Of much embarrassed
Reply:
Do not sink ah! ~
Reply:
First data encoding server, the client re-solution
Reply:
reference to the third floor lyright reply:
first data encoding server, the client re-solution



Thank you! While waiting for a good while yet been resolved:
As long as the data returned Html.fromHtml html look like.
 webview.loadDataWithBaseURL (null, Html.fromHtml (contentHtml) + "", "text / html", "utf-8", null); 
Posted by ou at 11:02 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Popular Posts

  • How to get width of the rectangle uitextfield text input?
    How to get width of the rectangle uitextfield text input? Only to find out the number of alphanumeric characters inside and special characte...
  • What do the iPhone software will make money?
    Hello everyone: Want to consult you a question, in the end what kind of software will make money? Hope that describe specific, the more spec...
  • objectivc-c
    Will the next self-obj-c to behold the book is better? Under linux can run obj-c of the procedure? mac software development in addition to o...
  • How release subviews?
    I created a new view1 in view, and then how should we deal with view1 after addsubview? CustomViewController * customViewController = [[C...
  • The couple asked a simple question about the network timeouts
    network exception android timeout I am a novice, do these days to do a college news client, but also found some problems, and so...
  • iphone how to always get the camera screen image
    rt. Like two-dimensional code scanning software, open, two-dimensional code when scanning to automatically parse and return. This should alw...
  • Will: objective c can call the standard c library.
    As the title: in xcode compiler can call the c standard library in objective-c in? If possible, please suggest specific operation, or give a...
  • Will UIWebView adaptive display width
    I use a UIWebView to display a web page, but that page width is 800, although there wrote css code automatically change according to the wid...
  • iphone pictures cut
    There are a parent uiview, in uiview inside a imageview, and a sub uiview, imageview used to initialize the picture, a uiview in imageview a...
  • IOS seeking micro-channel interface implementation ideas
    If that, please God, pointing twelve great, thank you very much! Reply: Question is too general, you can not answer Reply: The reply w...

Blog Archive

  • ►  2016 (677)
    • ►  February (72)
    • ►  January (605)
  • ▼  2014 (2738)
    • ►  May (50)
    • ►  April (539)
    • ▼  March (488)
      • Use SurfaceView camera with Camera development issues
      • Android development for serial communication doubt...
      • android4.0 system broadcasting issues
      • How Netease news app, and tie off the loaded conte...
      • android client calls webservice reported abnormal,...
      • Find framebuffer convert BITMAP format code. 32-bi...
      • How to implement a custom form?
      • How and C + + Builder website for HTTPS POST and GET?
      • android call webservice dataset data is abnormal, ...
      • android how to set up another xml layout file Text...
      • DrawerLayout coverage is the main interface naviga...
      • Why editText1 the OnKey event is executed twice To...
      • Asked one: android source code, how to switch vers...
      • android how to obtain the source code of open sour...
      • Every android emulator debuggers are very unhappy ...
      • Service in onRebind () method is invoked when in t...
      • Why animationDrawable.start (); unable to perform ...
      • Similar figures message boards countdown of how to...
      • Problem is automatically reset scroll view
      • Gson how to parse Json array types
      • Ask: Can get the code package name of the current ...
      • android
      • Background not full
      • Share on Twitter qq space integration
      • Ask a white Question: Android software protection
      • This effect is how to do?
      • apk decompiled code back to the positive developme...
      • How JAVA modify bmp image bit depth, there are par...
      • android global data sharing
      • ImageView with getDrawable () to get the problem D...
      • android sensors help
      • silent install android application
      • android notification use
      • Novice seeking advice, when the android lock scree...
      • How to parse following json data ah .. seeking hel...
      • android custom Adapter in getView method does not ...
      • Android how to use code to open the GPS
      • Android UI interface beautification program on the...
      • General android game which put the picture?
      • Android start a program, at least how much memory ...
      • Android Virtual Device occurrence
      • android TextView setMovementMethod slide background
      • Andrews when you open the file with the intent of ...
      • Android controls in top issues in viewgroup
      • android how to clean out the album cache?
      • When you press the return key android4.2.2 next to...
      • android imageview not show pictures
      • Reading device models appeared abnormal, we have e...
      • Has anyone met setVisibility (View.GONE) does not ...
      • FrameLayout display problems within the control sw...
      • problems encountered in game development andengine...
      • Then your application references Baidu offline map
      • Location Baidu offline map
      • Android uses sdl1.3 play video problems.
      • Spinner does not respond setOnItemSelectedListener...
      • No function name followed by static
      • cocos2d-x ported Android. iconv error
      • Please recommend a 1000-2000 WCDMA handsets, ZTE o...
      • AsyncTask's onPostExecute method can call another ...
      • Invalid very strange set LinearLayout setVisibility
      • Notification of the taskbar, point to open, how to...
      • My month android development experience
      • How to dynamically refresh jsp code?
      • android4.0 button in the menu, like how to get the...
      • How to make a preference PreferenceScreen class gr...
      • Advice on how to root access via adb no screen shots?
      • android4.0 custom lock screen apk summary form
      • adnroid the program was 360 killed, but the Notifi...
      • About service
      • Install the certificate from the sd card
      • Fax machines can not access, analog machines can a...
      • android webview how the show came back did not tag...
      • Help, Android upload pictures, how to get the stre...
      • ExpandableListView's setOnChildClickListener
      • Great God rookie seek advice android gravity senso...
      • listView oom error occurs, how to solve
      • Android4.1-- screen rotation issues
      • Jump to another Activity Intent error
      • How to set up a separate lock screen wallpaper
      • Discussion: wince / android software, or other dev...
      • android multiple notifications
      • Newbie help, ecplise how to enter the android tryi...
      • How to read large cattle source
      • Version and the resolution on android development ...
      • Forum to ask a few questions of tricks! ~! ~ ~ ~ ~...
      • Want to learn Android development. . Seeking advice
      • Help: About ShareSDK micro-channel sharing
      • android graphic design issues
      • Android define themselves locked control procedure...
      • android setText () position changed after the comp...
      • ant problem android project package
      • jxl.jar read excel exist to sqlite, logcat tips co...
      • Neither user 10075 nor current process has android...
      • About HorizontalScrollView questions ask you senio...
      • adb logcat how to output the call stack
      • Android, how to achieve data sqlite local data syn...
      • After the network to download pictures, display pi...
      • How to get to play an audio file length
      • android
      • mplayer-android compiling problem
    • ►  February (830)
    • ►  January (831)
  • ►  2013 (1459)
    • ►  December (1077)
    • ►  November (47)
    • ►  October (85)
    • ►  September (250)

Labels

  • crash (1)
  • debug (1)
  • framework (1)
  • ios (3)
  • ipad (1)
  • java (1)
  • mac (1)
  • NSArray (1)
  • video (1)
  • xcode (2)

Total Pageviews

Simple theme. Powered by Blogger.