i can't edit encoding

The place for "I can't figure out how to..." questions.
Post Reply
sakr188
User
Posts: 13
Joined: Tue Aug 14, 2007 8:57 pm
Location: algeria

i can't edit encoding

Post by sakr188 » Tue Aug 14, 2007 9:19 pm

hi

i use getID3 and with arabic language

when i edit encoding to iso-8859-6 i take error like this

Processing . . .PHP does not have iconv() support - cannot convert from ISO-8859-6 to UTF-8

i have teste many solution bat i dont arrived to the solution if we can help me

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Tue Aug 14, 2007 10:37 pm

You need to install iconv.

sakr188
User
Posts: 13
Joined: Tue Aug 14, 2007 8:57 pm
Location: algeria

Post by sakr188 » Wed Aug 15, 2007 10:49 am

hello

the problme is in encoding because iconv is installed in my localhost when i use iso-8859-1 i have't a problem but when i tchange the chareste to
iso-8859-6 or cp1256 or windows-1256

i take many problem with is like the problem ok iconv

so how i can edit encoding to iso-8859-6 because i need support arabic lettere

thanks

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 10:58 am

The error message you described in first post means that iconv is not installed or not working.

If you have installed iconv and still get problems it may be caused by your ID3v1 and ID3v2 being encoded incorrect - using system codepage instead of iso-8859-1 as in spec. Refer to this post for a solution:

http://www.getid3.org/phpBB2/viewtopic. ... ht=russian

sakr188
User
Posts: 13
Joined: Tue Aug 14, 2007 8:57 pm
Location: algeria

Post by sakr188 » Wed Aug 15, 2007 12:18 pm

iconv work correct with iso-8859-1

when i edit it to iso-8859-6 i have many problem

this is from my phpinfo about iconv

iconv support enabled
iconv implementation "libiconv"
iconv library version 1.9

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1


and now if u can help me to regule this problem now i work in
demo.write.php

thanks for your service

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 12:32 pm

Which version of PHP are you running?

There seems to be a bug in 5.2.0 that could be the cause of this problem:
http://bugs.php.net/bug.php?id=39685

sakr188
User
Posts: 13
Joined: Tue Aug 14, 2007 8:57 pm
Location: algeria

Post by sakr188 » Wed Aug 15, 2007 1:07 pm

yes i use PHP Version 5.2.0

so what i will do

i need tages editor for a audio fille if u can help me

about iconv i say if i can replace this fanction with another class ??

thanks my friends
Last edited by sakr188 on Wed Aug 15, 2007 1:10 pm, edited 1 time in total.

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 1:09 pm

You need to upgrade to PHP 5.2.3

sakr188
User
Posts: 13
Joined: Tue Aug 14, 2007 8:57 pm
Location: algeria

Post by sakr188 » Wed Aug 15, 2007 1:14 pm

ok so if i upgrade in local host to 5.2.3 it work in server with php 4.7.7


my friend i need only how i edit tags for mp3 and real audio files with arabic language encoding support



thanks

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 1:17 pm

sakr188 wrote:ok so if i upgrade in local host to 5.2.3 it work in server with php 4.7.7
Hopefully.

In any case it will never work with PHP 5.2.0 because that version has a bug in it. You could install 4.7.7 locally...

sakr188 wrote:my friend i need only how i edit tags for mp3 and real audio files with arabic language encoding support
The write demos will show how to write tags on mp3 files.
Real tag writing does not work properly.

sakr188
User
Posts: 13
Joined: Tue Aug 14, 2007 8:57 pm
Location: algeria

Post by sakr188 » Wed Aug 15, 2007 1:27 pm

real tages dont work corectly Oh My God

i need it and it's urgent if ican onli clear file information its better than anything

I swear you i need a solution with arabic encoding

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 1:50 pm

There is some code for getID3() 1.7.6 and 1.7.7 that can write to Real files. Maybe you can use it... May damage your files though.

sakr188
User
Posts: 13
Joined: Tue Aug 14, 2007 8:57 pm
Location: algeria

Post by sakr188 » Wed Aug 15, 2007 2:04 pm

i have upgrade to 5.2.3

and when i write

i take this problem
starting to write tag(s)
PHP does not have iconv() support - cannot convert from ISO-8859-1 to ISO-8859-6

my friend what is it file where i can use it to edit real audiofiles

thanks so matche

sakr188
User
Posts: 13
Joined: Tue Aug 14, 2007 8:57 pm
Location: algeria

Post by sakr188 » Wed Aug 15, 2007 2:25 pm

Mr Allan Hansen

i have regule a problem now it work corectly

but when i edit a file tags information

i have a Warnings Errors & Warnings can say me what is a solution to this warnings

this is picture Image

thanks

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 2:33 pm

What type of file and what type of tag were you trying to write?

sakr188
User
Posts: 13
Joined: Tue Aug 14, 2007 8:57 pm
Location: algeria

Post by sakr188 » Wed Aug 15, 2007 2:38 pm

real

and i can't edit wma file tags

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 2:47 pm

As I already told you, real tag writing does not work. You may be able to remove existing tags or replace existing values with spaces.

The real writing module should never have been released. This mistake has been corrected in 1.7.8b1 where the module is removed.

You are welcome to experiement with the module, but I cannot help you. I simply do not know anything about it other than it does not work.

Allan Hansen
getID3() v2 developer
Posts: 445
Joined: Sun May 04, 2003 2:22 pm
Location: Holmegaard, Denmark

Post by Allan Hansen » Wed Aug 15, 2007 2:49 pm

sakr188 wrote:and i can't edit wma file tags
getID3() cannot write WMA tags.

From http://getid3.org/
getID3() can write:

* ID3v1 (v1 & v1.1)
* ID3v2 (v2.3, v2.4)
* APE (v2)
* Ogg Vorbis comments
* FLAC comments

Post Reply