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 6057683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:30:56+00:00 2026-05-23T08:30:56+00:00

I am reading text files (RDF) using the NxParser library. I am getting lots

  • 0

I am reading text files (RDF) using the NxParser library.

I am getting lots of ‘percent encoded’ characters. My question is two fold:

  1. Should I save the words with the encoding and ‘decode’ them when I want to display them, or should I decode them and then store them (I am using MySQL to store data (if that makes any difference))

  2. How do I decode the reserved characters, I’ve been trying to find a library that can take some input and then print out a ‘nice’ version of the same word

I have tried replacing some of the characters with their ‘normal’ equivalent like so someString.replaceAll("%28","(").replaceAll("%29","). This works fine, but of course it’s time consuming to write and perhaps slow to run as well (if lots of replaceAll() are called).

  • 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-23T08:30:57+00:00Added an answer on May 23, 2026 at 8:30 am

    Should I save the words with the encoding and ‘decode’ them when I want to display them […]?

    I would save them “unencoded” and encode them when you want to display them. (Different (future?) display mechanisms may require different encodings!)

    How do I decode the reserved characters, I’ve been trying to find a library that can take some input and then print out a ‘nice’ version of the same word

    You should use URLDecoder for this purpose.

    Example:

    System.out.println(URLDecoder.decode("Hello %28 world", "UTF-8"));
    

    Output:

    Hello ( world
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Newbie question. In Python 2.7.2., I have a problem reading text files which accidentally
I am using Powershell for some ETL work, reading compressed text files in and
When reading text from word files, I get the following output. Some weird characters
When reading lines from a text file using python, the end-line character often needs
I'm reading text files but I don't know in advance the kind of line
I am working on a project that requires reading text files, extracting data from
I have been reading the Full Text help files for CONTAINS, FREETEXT, CONTAINSTABLE and
The cplusplus.com example for reading text files shows that a line can be read
I'm trying to convert Morse code into text. I have two text files to
I'm tasked with reading a large text files(not XML's) may be in GB's in

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.