Is it possible to display diferent languages characters on same page ?

Posted on 2004-11-26
Last Modified: 2010-04-09
I making some tests towards a bigger project and for example, I can put chinese characters by adding the charset=gb2312  and they display just fine.

I can even add now some Russian characters under the same charset and seems they're displaying fine.
But now, I add some arab characters to same page and now they just don't display fine, other characters, similars, but no the same are display.
I wonder, if this I'm doing is really possible, first of all ? Also, why the gb2312, which I thought was the chinese charset also helps to display russian characters ?
Question by:fischermx
    LVL 25

    Expert Comment

    LVL 1

    Author Comment

    Addition :

    If I change the charset to charset=windows-1256, which I took from an arab page, now Chinese are shown as little boxes, russian still displaying fine, and arab characters are now displayin correctly, but it seems in reverse order of what I pasted from an arab site ...

    LVL 9

    Accepted Solution

    Best way to show different character sets on same page would be by using UTF-8 encoding. to try this open editor, set encoding to UTF-8, write few paragraphs and then save as UTF-8. Now open your document and you should see all chars to show up as they should.

    LVL 5

    Expert Comment

    if u are using asp, u can add

    <%@codepage=65001 language=vbscript>
    <% response.charset=UTF-8 %>

    and also save this asp file type as UTF-8 instead of ANSI.

    LVL 1

    Author Comment

    Gruntar .

    Thanks, that did the trick, saving the page as UTF8, allow me to show different characters in same page.
    However, my doubt now is about that UTF8 encoding, I would say, reading the "8", that it would be something liimited to one byte per character (8-byte), but well, it seems it doesn't.
    So, what does this UTF8 stands for ?

    LVL 3

    Expert Comment

    LVL 9

    Expert Comment

    check link posted by RMaruszewski :)


    Featured Post

    Training Course: Android App Development

    This course will involve creating widgets, customize list view, grid view, spinners, etc. Creating applications using audio, video, and SQLite database. Ending with publication on Google Play.

    Join & Write a Comment

    Suggested Solutions

    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
    In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

    728 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

    22 Experts available now in Live!

    Get 1:1 Help Now