Asp.net & Mojibake

Asp.net & Mojibake

- Joey Yasumatsu の投稿
返信数: 4

Sorry to write in English. It's just faster to write for me.

I am coding this Asp.net page in VB with SQL server 2000 as backend. My japanese is displaying correctly on the page, but if I run an update query with the updated data, the japanese characters become "????????"

I have put this   in my web.config file --> <globalization      requestEncoding="shift-jis"       responseEncoding="shift-jis"       fileEncoding="shift-jis"    />

What else do I need to do to make it work? Thanks in advance.

Joey Yasumatsu への返信

Re: Asp.net & Mojibake

- Mitsuhiro Yoshida の投稿
画像 Developers 画像 Particularly helpful Moodlers 画像 Translators
Hi! Unfortunately we don't use "shift-jis" for Moodle Japanese language packs ( euc-jp and utf-8 ).
How about changing your web.config as below? wink

[using "ja_utf8" Japanese language pack]
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />

 or

[using "ja" Japanese language pack]
<globalization requestEncoding="euc-jp" responseEncoding="euc-jp" fileEncoding="euc-jp" />


Joey Yasumatsu への返信

Re: Asp.net & Mojibake

- Hideto Harashima の投稿

Hi Joey,

There are several places you might want to look into if Mr. Yoshida's solution doesn't work: characterset, mbstring, httpd.conf, etc. You better keep coherance with all Japanese codings in those files. Good luck!

Hideto Harashima への返信

Re: Asp.net & Mojibake

- Joey Yasumatsu の投稿

Hi,

I had tried to modify the webconfig but it didn't work.

1) <!--globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" /-->

日本語 ----> becomes ---> {

2) <globalization requestEncoding="euc-jp" responseEncoding="euc-jp" fileEncoding="euc-jp" />
日本語 ----> becomes ---> 楠倍悟 :/TD>

I also have <meta http-equiv="Content-Type" content="text/html; charset=shift_jis">   on the page.

What is mbstring, httpd.conf ?   Where should I modify it?  This is driving me crazy.....

By the way, have you coded in PHP ?   Do you prefer PHP than asp.net?

Joey Yasumatsu への返信

Re: Asp.net & Mojibake

- Mitsuhiro Yoshida の投稿
画像 Developers 画像 Particularly helpful Moodlers 画像 Translators
Please try;

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

or

<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">


mbstring is multibyte string functions for PHP.
httpd.conf is a configuration file for "Apache HTTP Server".

I'm using PHP and checking Moodle PHP code sometimes for Moodle Japanese translation.
I have never used asp.net.