• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

charsets didn't get it

 
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers,

Whats Charset header? ( i am not asking definition)

How i can display "Good Morning" on browser in all languages probably using UTF-8.

How i can get Chinese language or Japanese font?

What all i need to accomplish the task.

Please tell me; any resource where i can get all i want;
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The server sends the client a stream of bytes.But only with bytes the client cannot create a user character(By user character I mean printable characters) , unless it knows as what encoding has been used by the server.Using charset header the server specifies this.

If you encode your result using chineese charset , then mention that in the response header.It the client understands that charset it would properly show up the user characters.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As a follow up, this is a good summary.
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paul,

I will go through that link and back to you.
Seems interesting column.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paul Sturrock:
As a follow up, this is a good summary.



Great one!
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paul,

From the link given by you, I was able to know ...

1. Whats Unicode char set and code points.
2. How Code points stored in memory(Encoding schemes)
UTF-8, UCS-2,UTF-16.

3. If you send UTF-8 Encoded data to a browser where some other encoding is used then it will display ? whenever it encounters a codepoint not in its charset mapping. it can only replace the characters with its own encoded characters.

I got that much basics.
Thing is i am still not able accomplish the task.

What i want to do is display "Good Morning" in all languages.

If say Chinese means he should be able to see chinese font not any other converted font.

Pleas guide me.
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


If say Chinese means he should be able to see chinese font not any other converted font.


The basic point is you need to properly set the content-type then the rest is up to the client browser/OS. The client environment (if we are talking about Windows here) will need at least one Chinese font installed, otherwise you will get blocks or question marks instead, since there is no encoding on the client capable of rendering the characters defined in your HTML. So, if you have the Chinese version of IE installed there will be no problem. If you have the English version, it may alert you that you need to download a language pack, though it may not. Download the Chinese language pack and try your page again.
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Paul,

I didn't get the link between Encoding and fonts.
Anyway i think i have no base to prolongue this issue to get my task done.

Thanks a lot Paul.
 
reply
    Bookmark Topic Watch Topic
  • New Topic