Solved

Forms Input Data - International Characters

Posted on 1997-12-10
1
142 Views
Last Modified: 2013-12-25
How is forms data passed back from browsers set to use some
of the international two-byte character encodings. For instance, if a user in Japan using a browser inputs data into a form using Japanese characters, how will my application here see the data? Is there a way I can tell what character set (encoding) is being used?
0
Comment
Question by:fhattyar
1 Comment
 
LVL 7

Accepted Solution

by:
faster earned 50 total points
ID: 1831613
No, you can not tell.

For example, if the user input Chinese, a character may appear as 0xb40xA6, the browser will treat it like any binary data, simply urlencode it and send to your server.  From your CGI, after you decode, you will get back to 0xb40xA6, that is all you have.  You cgi should decide what to do with it.

I think normally you need not care.  Anyway, your cgi is not going to understand the meaning of input, right?  Unless you are doing translation.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now