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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:02:21+00:00 2026-05-25T17:02:21+00:00

I have a webpage with a form that accepts userinput that when submitted is

  • 0

I have a webpage with a form that accepts userinput that when submitted is used as content for a text file – the simplified application flow is:

1) User enters text and presses submit

2) Webpage gets template from filesystem and replaces some of the content of the file with the userinput

3) File is stored.

Now the problem is that the form can be used by people with different nationalities and written language, and if the user enters for example Chinese text, into the form, I want the Chinese characters to be written to the file. As I understand it I need to know the encoding for the content – is there any way to get this from the form, or do you have another idea to get around this?

Best regards (or as some users would input 最好的問候)

Michael

  • 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-25T17:02:22+00:00Added an answer on May 25, 2026 at 5:02 pm

    In ASP.Net This should already work pretty much exactly as you describe it:

    1. The browser allows the user to enter some text and submits it to the web server using a suitable encoding. The ASP.Net framework handles the encoding for you and just gives you a standard .Net string.
    2. As long as the templating itself is done using standard .Net strings you shouldn’t need to worry about the encoding when doing string manipulation – the .Net framework handles the encoding internally and exposes the characters represented independently of encoding.
    3. When saving the file you just need to make sure you choose a suitable encoding. UTF-8 will do just fine and is most likely the encoding that the .Net framework will choose unless you explicitly specify another encoding.

    Have you tried this yet? If so what goes wrong?

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

Sidebar

Related Questions

I have a webpage with a form that is used to edit some object.
I'm making a web application using PHP in where I have a form that
I currently have a login form that clears text from the field after a
I have a webpage that on a button click grays out the main form
I have a webpage that looks like: <html> <head> <title>Hi</title> </head> <body> <form name=mainForm
I have a webpage that requires login. Once a user has logged in I
I have a webpage with a form element and a popup window (opened by
I'm using django, and have a static webpage with a GET form, and about
I have a few asp:textbox controls in a form on a webpage, below is
I have a webpage that pulls information from a database, converts it to .csv

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.