Yuiji sasaki
2007-Feb-20 12:41 UTC
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dmitry Solonina
2007-Feb-20 19:41 UTC
Re: How can i give support of multi byte char in my web page
Before database creation, set Name: some_db_name Character Set: cp932 Collation: cp932_japanese_ci if you use MySQL database -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dmitry Solonina
2007-Feb-20 19:48 UTC
Re: How can i give support of multi byte char in my web page
or try Character Set: eucjpms Collation: eucjpms_japanese_ci I think it is better -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yuiji sasaki
2007-Feb-21 02:14 UTC
Re: How can i give support of multi byte char in my web page
Dmitry Solonina wrote:> or try > > Character Set: eucjpms > Collation: eucjpms_japanese_ci > > I think it is betterThanks 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 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> is it right? please provide some details because I am new in ruby. thanks in advanced. Sasaki -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dmitry Solonina
2007-Feb-21 13:42 UTC
Re: How can i give support of multi byte char in my web page
read about symbols coding on: http://en.wikipedia.org/wiki/EUC <meta http-equiv="Content-type" content="text/html; charset=euc-jp" /> 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dmitry Solonina wrote:> read about symbols coding on: http://en.wikipedia.org/wiki/EUC > > <meta http-equiv="Content-type" content="text/html; charset=euc-jp" /> > > 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: localhostThanks a lot. It works fine. Sasaki -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---