How can i give support of multi byte char in my web page

Dear guys,
How can i give support of multi byte char in my web page? What
will be the database configuration? In project has to support Japanese
language?
please give me some idea about it.

Sorry for my poor English.

Sasaki

Before database creation, set

Name: some_db_name
Character Set: cp932
Collation: cp932_japanese_ci

if you use MySQL database

or try

Character Set: eucjpms
Collation: eucjpms_japanese_ci

I think it is better

read about symbols coding on: EUC - Wikipedia

database.yml don’t have any sections about charset support

You need at each section and key database values
change for name your MySQL database name

for example in mysql console create database:

mysql> create database test_db;

development:
adapter: mysql
database: test_db
username: root
password:
host: localhost

test:
adapter: mysql
database: test_db
username: root
password:
host: localhost

production:
adapter: mysql
database: test_db
username: root
password:
host: localhost

Dmitry Solonina wrote:

or try

Character Set: eucjpms
Collation: eucjpms_japanese_ci

I think it is better

Thanks for you response. But still confusion about the following
tropics:

I use ruby on rails 1.8.5.
mysql version 4.1.9.

  1. any change in database.yml configuration?

  2. What will be the charset in html meta tag?
    suppose I have

    is it right?

please provide some details because I am new in ruby.
thanks in advanced.

Sasaki

Dmitry Solonina wrote:

read about symbols coding on: EUC - Wikipedia

database.yml don’t have any sections about charset support

You need at each section and key database values
change for name your MySQL database name

for example in mysql console create database:

mysql> create database test_db;

development:
adapter: mysql
database: test_db
username: root
password:
host: localhost

Thanks a lot. It works fine.

Sasaki