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

  • Home
  • SEARCH
  • 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 3788620
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:01:42+00:00 2026-05-19T12:01:42+00:00

I need to store some data in a text file. The data is in

  • 0

I need to store some data in a text file. The data is in my mysql as latin1 to use as few bytes as possible. How can I make a text file for php to write to in latin1 format please?

  • 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-19T12:01:43+00:00Added an answer on May 19, 2026 at 12:01 pm

    Whilst slightly off-topic, to be honest I’d be tempted to keep everything (web page, database connection, table/collation, output files, etc. in UTF-8), purely in the (quite possibly epically unlikely) eventuality that non latin1 characters are required at any point in the future.

    Virtually all text editors, etc. support UTF-8 as-is and it’ll be easier to convert from UTF-8 to another format (and conversely from another format to UTF-8) if so required. Additionally, database (and disk space) is ridiculously cheap, so using up a few bytes here and there in comparison to committing to a limited character set would seem a bit of an excessive trade-off.

    Incidentally, there’s a fairly canonical blog post related to such things by Joel Spolsky called: “The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)“. It’s well worth a read irrespective of which way you decide to go.

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

Sidebar

Related Questions

I usually use C++ stdlib map whenever I need to store some data associated
I need to store some data in a Django model. These data are not
I need to store some sensitive data by encrypting it with atleast 128 bit
I need to store some simple properties in a file and access them from
I need to store some data that looks a little like this: xyz 123
I am writing my first real applet and I need to store some data.
I'm using DPAPI in C++ to encrypt some data that I need to store
I need to store some values in the database, distance, weight etc. In my
I'm using C# and .NET 3.5. I need to generate and store some T-SQL
I'm getting some objects from an external library and I need to store those

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.