Globalization project with Japanese language

Last post 11-07-2009 11:24 AM by vendevelop. 8 replies.

Sort Posts:

  • Globalization project with Japanese language

    11-04-2009, 12:31 PM
    • Member
      3 point Member
    • vendevelop
    • Member since 07-03-2009, 2:07 AM
    • Posts 14

    Hello to all,

    I am programming a multilanguage web site. I created my Resource Provider to get the data from SQL Server Database. I tried to add some words in my database in japanese language but only save question marks (?????). My question is:

    How can I program my web site to use Japanese language?

    I need create a new database with Japanese language configuration?

    Thanks in advance 

  • Re: Globalization project with Japanese language

    11-04-2009, 2:56 PM
    • All-Star
      62,833 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,267
    • TrustedFriends-MVPs

    Is the data type NCHAR or NVARCHAR? If it is CHAR or VARCHAR then  only ASCII will be saved correctly.

    ALso if you are using raw TSQL as in

    INSERT INTO FRED(NAME) VALUES ('FRED FLINTSTONE')

    change it to

    INSERT INTO FRED(NAME) VALUES (@'FRED FLINTSTONE')

    vendevelop:
    I need create a new database with Japanese language configuration?

    Only to get the collationg sequence by default, however you can change the collation desquence in any SELECT statement.

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Globalization project with Japanese language

    11-05-2009, 11:56 AM
    • Member
      3 point Member
    • vendevelop
    • Member since 07-03-2009, 2:07 AM
    • Posts 14

    Doesn't work.

    The data type is VARCHAR. I tried with this testing sentence:

    INSERT INTO dbo.TableResources(Resource_Value) VALUES (@'について')


     Error:

    Must declare the scalar variable "@".

     

    Anny suggestion?

  • Re: Globalization project with Japanese language

    11-05-2009, 12:14 PM
    • All-Star
      62,833 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,267
    • TrustedFriends-MVPs

    Please try

    INSERT INTO dbo.TableResources(Resource_Value) VALUES (N'について')

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Globalization project with Japanese language

    11-05-2009, 4:14 PM
    • Member
      3 point Member
    • vendevelop
    • Member since 07-03-2009, 2:07 AM
    • Posts 14

    Doen't work.

    The row is saved in the database but the values is ??????

    Which is the best option for multilanguage website to manage several languages including Japanese? 

  • Re: Globalization project with Japanese language

    11-05-2009, 6:05 PM
    Answer
    • All-Star
      62,833 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,267
    • TrustedFriends-MVPs

    >The data type is VARCHAR.

    Please amend data type to NVARCHAR


    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Globalization project with Japanese language

    11-06-2009, 4:10 PM
    • Member
      3 point Member
    • vendevelop
    • Member since 07-03-2009, 2:07 AM
    • Posts 14

    Great! now it's working good.

    But, I will have not problem with my database in the future?

    My web site will be show 40 different languages, do you think that the best option is save all text translation in one database? or will be better create another database for oriental languages like as japanese, chinese, etc? 

    I need set any configuration in my database? I create my database with default values, it is OK?

  • Re: Globalization project with Japanese language

    11-06-2009, 7:34 PM
    • All-Star
      62,833 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 1:34 PM
    • England
    • Posts 12,267
    • TrustedFriends-MVPs

    I suggest you use just the one database.

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
  • Re: Globalization project with Japanese language

    11-07-2009, 11:24 AM
    • Member
      3 point Member
    • vendevelop
    • Member since 07-03-2009, 2:07 AM
    • Posts 14

     OK, thanks for your help!

    My web site it's work fine.

Page 1 of 1 (9 items)