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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:47:56+00:00 2026-06-07T04:47:56+00:00

I am try to pull out byte data from a source, encrypt it, and

  • 0

I am try to pull out byte data from a source, encrypt it, and then store it in the file system.

For encryption, I am using jasypt and the BasicTextEncryptor class. And for storing on to the file system, I am using Apache’s Commons IOUtils class.

When required, these files will be decrypted and then sent to the user’s browser. This system works on my local machine where the default charset is MacRoman, but it fails on the server where the default charset is UTF-8.

When I explicitly set the encoding at each stage of the process to use MacRoman it works on the server as well, but I am skeptical about doing this as rest of my code uses UTF8.

Is there a way that I can work the code without conversion to MacRoman?

  • 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-06-07T04:47:58+00:00Added an answer on June 7, 2026 at 4:47 am

    You should just use UTF8 everywhere.

    As long as you use the same encoding at each end of an operation (and as long as the encoding can handle all of the characters you need), you’ll be fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using simple-html-dom to try and pull some code from another site. Here's some
I am using git in my projects, whenever I try to pull from Xcode
Each time I try and pull out a date from row caseOpen in tbl_accident
well, i wanna pull out some data from a mysql view, but the wuery
I am trying to pull information from another site. When I try and do
I am trying to pull data from a table I have imported into my
I'm trying to pull real time indication of interest data out of bloomberg and
I have a function that pulls data out of an XML file. I am
So I am currently using SAX to try and extract some information from a
I'm using XPath to pull out just the values of URL128 XML element. There

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.