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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:33:52+00:00 2026-06-18T12:33:52+00:00

Let’s say I have page A, which uses ks_c_5601-1987(Korean) as encoding and page B,

  • 0

Let’s say I have page A, which uses ks_c_5601-1987(Korean) as encoding and page B, using UTF-8 (Korean) as encoding. I need to pass a string variable from A to B that is in Korean. Because two pages use a different encoding, the variable gets jumbled up when B receives it using Request().

How can I encode the string variable in A to UTF-8 when passing it to B? I’m aware that setting both pages as UTF-8 encoding scheme is the most sensible solution here but it unfortunately is not an option here since page A uses several dlls that relies entirely on ks_c_5601-1987 encoding.

Edit: After reviewing the answer, I have went ahead and tried the method. This is the code to send the variable mailbox into get_list_center.asp:

<!--mail_mail.asp, page in ks_c_5601-1987-->
<%
dim mailbox = "테스트"
Response.CodePage = 65001 'Response.write should now encode the string into UTF-8
%>

...
<frame name="get_list_center" scrolling="auto" marginwidth="0" framespacing="0" marginheight="0" frameborder="0" src="get_list_center.asp?mailbox=<%=mailbox%>">

and this is how I’m receiving the variable in get_list_center.asp:

<%
Session.Codepage=65001

Response.CharSet="UTF-8" 

response.Write CStr(response.codepage) & "<BR>"
response.Write CStr(session.CodePage) & "<BR>"
response.Write CStr(response.CharSet) & "<BR>"
response.codepage = 949
response.Write mailbox & "<BR>"
response.codepage = 65001
response.Write mailbox & "<BR>"
%>

Here is the result:

enter image description here

Both 949 (ks_c_5601-1987) and 65001 (UTF-8) versions of response.write comes out broken. Is there anything else I’m missing?

  • 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-18T12:33:53+00:00Added an answer on June 18, 2026 at 12:33 pm

    I would think that you could get an answer by reading the solution to this question: internal string encoding
    .

    By utilizing Reponse.Codepage you can affect how posted variables are interpreted. And as I understand you can then switch back to wichever encoding you like.


    [Update]

    Because you are using an iframe it is the browser that handles the encoding when sending the request back to the server. And the browser (as I understand) sends the data in the same encoding as the originating page. So if page A that contains the iframe has the charset=Korean I believe that data is sent using Korean encoding.

    Is the charset defined in the html tag on page A? If not, add it and then try to use the same in page B.

    <meta charset="utf-8"> 
    

    Also, as “테스트” is a string literal that is affected of the FILE-encoding, make sure to save the asp-file in the appropiate encoding.

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

Sidebar

Related Questions

Let's say I have a dataset, which can be neatly classified using weka's J48
Let say you have an XML like this: <?xml version=1.0 encoding=utf-8?> <Class HashCode=307960707> <Person>
Let's say I have a method in java, which looks up a user in
Let's say I have to use an ASP master page and setup a Kendo
Let's say I have an actor like this (Using Akka 2.1 with Scala 2.10):
Let's say I have a Job Scheduler which has 4 consumers A, B, C
Let's say I have an Instant Messenger server using SignalR. I want to broadcast
Let's say I have the following function in C#: void ProcessResults() { using (FormProgress
Let's say i have a simple page that just contains a button that when
Let's say I don't have photoshop, but I want to make pattern files (.pat)

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.