Fóruns: osCommerce 一般 (Thread #22146)

"円"通貨が非表示 (2009-03-26 04:56 by ATT #42754)

oscommerce-2.2ms1j-R8をインストールしていろいろ構築していますが
日本"円"通貨が表示できなく困っております。他に文字化けとかはありません。
ローカライズ の通貨設定で円を入れても更新するとなくなってしまいます。。
日本語入力できないでしょうか、どなたか表示させる方法おしえてください。

Responder a #42754×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: "円"通貨が非表示 (2009-03-27 11:52 by Anônimo #42794)

Admin -> ローカライズ -> 通貨設定は Japanese Yen がデフォルトになっていますか?
また、右側シンボル: 円になっていますか?
データベースのテーブル currencies の中にsymbol_right がありますが、そこには「円」が入っていますか?
表示だけできていないのか、更新ができないのかによっても対応が変わってくると思います。

ちなみに R8 で正常にインストールされていれば表示できないということはありません。
いろいろ構築なさっているとの事ですが、そのときに何らかの影響があった可能性はあります。
オリジナルのファイルに戻してみて何らかの違いを確認されましたか?
Responder a #42754

Responder a #42794×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: "円"通貨が非表示 (2009-03-29 00:22 by ATT #42827)

ご返信ありがとうございます。
データベース中身がutf8環境で作られてosCommerceはujis前提でつくられてるのでしょうか。。
dump & ujisでリストアで解決しました。
中国語言語big5環境で文字化け発見しましたので引き続き遊んでみます^^

ご親切に回答いただてありがとうございました。
Responder a #42754

Responder a #42827×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: "円"通貨が非表示 (2009-03-29 00:26 by ATT #42828)

自分結構はまったので書いておきます。
catalog、admin両方のdatabase.phpに
mysql_query("SET NAMES ujis"); 追加してあげると幸せになれるみたい。
Responder a #42754

Responder a #42828×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: "円"通貨が非表示 (2009-03-31 10:48 by Anônimo #42861)

mysql_query("SET NAMES ujis");
↑これは解決の方法としては問題があるのかもしれません。

MySQL のバージョンにもよりますが、以下のほうが良いと思います。
mysql_set_charset('ujis');

Google で検索するとヒントがあるかも。
Responder a #42828

Responder a #42861×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: "円"通貨が非表示 (2009-04-08 20:48 by ATT #43047)

ありがとうございます
私の環境PHP 5.1.6ではmysql_set_charset関数が使えないようでした。。

Responder a #42861

Responder a #43047×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login