Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6188145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:10:50+00:00 2026-05-24T02:10:50+00:00

I have had a problem with formattings symbols shown on the image. I got

  • 0

I have had a problem with formattings symbols shown on the image. I got help from this site and I used Html.fromHtml() and hope that it would use the formatting, the only thing it did was to remove the formatting symbol but not anything else like newline or so.

If I cant find a way to use the formatting I wonder if it is possible to add a “\n” everytime the symbol is shown. The thing is if I try to use a method like
(Ps the “[]” is used here instead of the real symbol cause I cant find out how to write it.

int nr=theTextString.indexOf("[]") 

and then replace the text with 

theTextString=theTextString.substring(0,nr)+ "\n" + theTextString.substring(nr);

but the problem is that the symbol is not represented as a character to look for the index at, not in any way I know of. Would really be thankful for help.

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:10:52+00:00Added an answer on May 24, 2026 at 2:10 am

    If [] crap character is only shown on the last chacter do this

    Log.i("My String before:", theTextString);
    theTextString = theTextString.substring(0, theTextString.length()-2);
    Log.i("My String after:", theTextString);
    

    Btw: [] <– is not the same character (Infact, there are two characters) it is something else.

    Solution: To encode the string

    theTextString = URLDecoder.decode(theTextString, HTTP.UTF-8);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The responses I've got to this question have solved the problem I had in
I have had this problem w/ two seperate WYSWYG editors in my rails application
Has anyone had this problem? My projects tend to have some long XML files
(I have a problem that I illustrated in this question but had no correct
I have had this problem for a while, still trying to work on a
Okay, so I've read some other people have had this problem, but they either
I have had this recurring problem with all of my spreadsheets for months. The
I have had this problem with C# when I was using DotNet1.1 The problem
I have had this problem lots over time, if I iterate a list, and
I have had this problem for a while, Let say we have a movies

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.