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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:36:53+00:00 2026-05-31T13:36:53+00:00

Can someone show me a simple ASP script that produces a unicoded webpage? Maybe

  • 0

Can someone show me a simple ASP script that produces a unicoded webpage? Maybe you could write Hello world in a variety of languages.

Also how can I convert floats to string so that I can produce “2.3” or “2,3” depending on the country the page is being directed to. Does ASP offer functionality for doing this?

Furthermore, how do you convert "A B" to "A B" etc.

Thanks,

Barry

  • 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-31T13:36:54+00:00Added an answer on May 31, 2026 at 1:36 pm

    Unicode:

    There are two parts in creating a true Unicode (utf-8) page. First you will need to output the data as utf-8. To instruct the web server to use utf-8, put this line at the top of your asp-file.

     <%
    response.codepage = 65001
    response.charset = "utf-8" '//This information is intended for the browser.
    %>
    

    Secondly, you’ll need to tell the browser which encoding you are using. Put this information the html head tag.

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </head>
    

    Remember that hard-coded text (in an ASP-file) will be outputted “as is”, therefore save the file as utf-8 on disk.

    Localization:

    Also how can I convert floats to string so that I can produce “2.3” or “2,3” depending on the country the page is being directed to. Does ASP offer functionality for doing this?

    Use LCID to change how dates, numbers, currency etc is formatted. Read more here!

    <%
    Session.LCID = 1053 'Swedish dateformat (and number format)
    %>
    

    HTML encoding:

    Furthermore, how do you convert “A B” to “A B” etc.

    This is very easy. Just use Server.HTMLEncode(string)

    <%
    Server.HTMLEncode("A B")   '//Will output A&nbsp;B
    %>
    

    Example page:

    <%
    '//This page is encoded as utf-8
    response.codepage = 65001  
    response.charset = "utf-8"
    
    '//We use the swedish locale so that dates and numbers display nicely
    Session.LCID = 1053   '//Swedish 
    
    %>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        </head>
        <body>
           <%
               Server.HTMLEncode("Hello world!")     '//English
               Server.HTMLEncode("Hej världen!")     '//Swedish
               Server.HTMLEncode("Γεια σου κόσμε!")  '//Greek
               Server.HTMLEncode("!سلام دنیا")        '//Persian
            %>
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could someone show me a simple script that rotates <img src=xxx.jpg id=image> I've read
Can someone show simple Java Swing code/web resource that will position the popup dialog
Can someone please show a simple, but complete example of how one could use
Given the example below, can someone please show me how this could be called?
Can someone show me a simple tail-recursive function in C++? Why is tail recursion
Can someone show me a simple way I can test if someone's cookies are
Can someone show me how to use the System.Numerics.BigInteger datatype? I tried using this
Can someone show me how to print the ListView contents with the ColumnHeaders, without
can someone please show me documentation on this method? i have the following line:
Can someone tell/show me how to use PHP inside PHP. I'm trying to make

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.