Ticket #285 (closed feature: fixed)

Opened 3 months ago

Last modified 3 months ago

multi-byte character tags auto detection and conversion

Reported by: momo-i Owned by: momo-i
Priority: minor Milestone: 3.5 Stable Release
Component: Other Version: SVN
Keywords: id3tag Cc: momo-i

Description

If web server can use mbstring function, web server will be detecting id3tag's encoding automatically and converting it from id3tag's encoding to UTF-8.

Attachments

autotagconvert.patch (3.1 kB) - added by momo-i 3 months ago.

Change History

Changed 3 months ago by momo-i

Changed 3 months ago by momo-i

  • owner changed from vollmerk to momo-i

Changed 3 months ago by momo-i

  • status changed from new to assigned
  • milestone changed from 3.5 Alpha Release to 3.5 Stable Release

convert to UTF-8 is some issues.
See: http://www.phpwact.org/php/i18n/utf-8

strlen simply counts the number of bytes in a string, not the number of characters. This means for UTF-8 the integer it returns is actually longer than the number of characters in the string.

Note that this may not always be a problem - see the strpos discussion below for an example where working in bytes not characters produces expected results.

Some id3tags using multibyte characters can't convert utf-8, and getid3 module occurs exception error.

Changed 3 months ago by momo-i

  • status changed from assigned to closed
  • resolution set to fixed

multi-byte id3tags Encoding feature will be updated(r1732), but BigEndianSyncSafe2Int,BigEndianInt issues won't fix.

Add/Change #285 (multi-byte character tags auto detection and conversion)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.