Ampache

Pour l'Amour de la Musique

introduction

You are not logged in.

Announcement

- Forums Updated 12/27/2008 -

Please read the Rules before posting. Also please always update to the latest stable release before submitting a bug report. If you are using a development release please update to the latest SVN.

Useful Links

#1 2008-10-23 13:37:09

bearsurfer
Member
Registered: 2008-10-23
Posts: 2
Reputation :   

japanese character is not readable by ampache

how to insert japanese mp3 to ampache ?
i use utf_8 charset

config :
- Apache 2.2.8
- MySQL 5.0.51b
- PHP 5.2.6
- windows vista
- Ampache v.3.4.3

ex :  クニ河内とかれのともだち - 人間主体の経営と工事.mp3

Last edited by bearsurfer (2008-10-23 13:44:23)

Offline

 

#2 2008-10-23 16:47:09

momo-i
Fan
From: Japan
Registered: 2008-07-15
Posts: 34
Ampache Version: always svn
MySQL Version: 5.0.67
PHP Version: 5.2.6
Reputation :   

Re: japanese character is not readable by ampache

Hi,

If you wish to insert id3tags(encoded Japanese Shift_JIS) into database,  Simplify, only change this.
modules/getid3/getid3.php

Code:

    public $encoding                 = 'ISO-8859-1';      // CASE SENSITIVE! - i.e. (must be supported by iconv() - see http://www.gnu.org/software/libiconv/).  Examples:  ISO-8859-1  UTF-8  UTF-16  UTF-16BE.
    public $encoding_id3v1           = 'ISO-8859-1';      // Override SPECIFICATION encoding for broken ID3v1 tags caused by bad tag programs. Examples: 'EUC-CN' for "Chinese MP3s" and 'CP1251' for "Cyrillic".
    public $encoding_id3v2           = 'ISO-8859-1';      // Override ISO-8859-1 encoding for broken ID3v2 tags caused by BRAINDEAD tag programs that writes system codepage as 'ISO-8859-1' instead of UTF-8.

to

Code:

    public $encoding                 = 'UTF-8';      // CASE SENSITIVE! - i.e. (must be supported by iconv() - see http://www.gnu.org/software/libiconv/).  Examples:  ISO-8859-1  UTF-8  UTF-16  UTF-16BE.
    public $encoding_id3v1           = 'SJIS';      // Override SPECIFICATION encoding for broken ID3v1 tags caused by bad tag programs. Examples: 'EUC-CN' for "Chinese MP3s" and 'CP1251' for "Cyrillic".
    public $encoding_id3v2           = 'SJIS';      // Override ISO-8859-1 encoding for broken ID3v2 tags caused by BRAINDEAD tag programs that writes system codepage as 'ISO-8859-1' instead of UTF-8.

bearsurfer wrote:

how to insert japanese mp3 to ampache ?
i use utf_8 charset

config :
- Apache 2.2.8
- MySQL 5.0.51b
- PHP 5.2.6
- windows vista
- Ampache v.3.4.3

ex :  クニ河内とかれのともだち - 人間主体の経営と工事.mp3


I'm not good at English :(
So, I'm studying English little by little, translating.
I'm sorry that my English is strange. :(

Offline

 

Board footer

Powered by PunBB and MyBestBB

range