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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:53:33+00:00 2026-05-24T08:53:33+00:00

I have a Localized.strings (UTF-16) file that contains some strings that I use to

  • 0

I have a Localized.strings (UTF-16) file that contains some strings that I use to generate filenames for. I open the file in python with codecs.open("Localized.strings", "r", "utf-16")

The files are created successfully but with a ‘?’ tacked onto the end of the filename, for example:

MainMenu.strings? – where the “?” is lingering from the previous encoding I assume.

I’ve tried filename_string.encode('UTF-8') and filename_string.encode('ascii') with no luck, any suggestions? Am I using these wrong?

  • 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-24T08:53:34+00:00Added an answer on May 24, 2026 at 8:53 am

    OK, when reading lines from a file, it’s advisable to always strip() or rstrip() them. 🙂

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

Sidebar

Related Questions

I have a text file that contains localized language strings that is currently encoded
I have some static resources (images and HTML files) that will be localized. One
I have the localized strings file that is used in the Iphone app that
I have a template for an email that I've put in a localized strings
I have generated my strings file correctly using genstrings. I have changed the localized
I have created some resource files to hold strings. I am displaying a MessageBox
I have a problem getting localized value (a UTF-8 string) from the properties file.
I have an iPhone iOS4.1 application that uses localized strings. I have just started
I have an application that is supposed to be localized (two languages, english being
HI, I want to dynamically concatenating the strings using C#. I have localized string

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.