Skip to content

Commit 47ec0fd

Browse files
committed
Switch encoding from UTF-8 to ISO-8859-1 for .m3u playlists
1 parent 0020053 commit 47ec0fd

File tree

14 files changed

+53
-27
lines changed

14 files changed

+53
-27
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ sourceSets {
8585

8686

8787
group = 'io.github.borewit'
88-
version = '3.0.0'
88+
version = '3.0.1-SNAPSHOT'
8989
description = 'Lizzy'
9090
java.sourceCompatibility = JavaVersion.VERSION_1_9
9191

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Overide this settings in ~/.gradle/gradle.properties
22
ossrhUsername = ''
33
ossrhPassword = ''
4+
org.gradle.jvmargs=-Dfile.encoding=UTF-8

samples/m3u/.gitattribute

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
playlist-utf8.m3u text working-tree-encoding=UTF-8
2-
playlist-utf8-bom.m3u text working-tree-encoding=UTF-8-BOM
3-
playlist-utf16be-bom.m3u text working-tree-encoding=UTF-16BE-BOM
4-
playlist-utf16le-bom.m3u text working-tree-encoding=UTF-16LE-BOM
1+
playlist-utf8.m3u text working-tree-encoding=UTF-8
2+
playlist-utf8-bom.m3u text working-tree-encoding=UTF-8-BOM
3+
playlist-utf16be-bom.m3u text working-tree-encoding=UTF-16BE-BOM
4+
playlist-utf16le-bom.m3u text working-tree-encoding=UTF-16LE-BOM
5+
playlist-special-characters.m3u text working-tree-encoding=ISO-8859-1
6+
*.m3u8 text working-tree-encoding=UTF-8
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#EXTM3U
2+
3+
#EXTINF:111, Sample artist name - Sample track title
4+
C:\Music\SampleMusic.mp3
5+
6+
#EXTINF:222, Special characters
7+
C:\Music\ÀÁÂÃäA Ç ÈÉÊË ÌÍÎÏ N ÒÓÔÕö ÙÚÛü àáâãäa ç èéêë ìíîï n òóôõöo ùúûü.mp3
62 Bytes
Binary file not shown.
62 Bytes
Binary file not shown.

samples/m3u/playlist-utf8-bom.m3u

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
#EXTINF:111, Sample artist name - Sample track title
44
C:\Music\SampleMusic.mp3
55

6-
#EXTINF:222,Example Artist name - Example track title
7-
C:\Music\ExampleMusic.mp3
6+
#EXTINF:222, Special characters
7+
C:\Music\ÀÁÂÃäA Ç ÈÉÊË ÌÍÎÏ N ÒÓÔÕö ÙÚÛü àáâãäa ç èéêë ìíîï n òóôõöo ùúûü.mp3

samples/m3u/playlist-utf8.m3u

Lines changed: 0 additions & 7 deletions
This file was deleted.

samples/m3u/playlist-utf8.m3u8

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#EXTM3U
2+
3+
#EXTINF:111, Sample artist name - Sample track title
4+
C:\Music\SampleMusic.mp3
5+
6+
#EXTINF:222, Special characters
7+
C:\Music\ÀÁÂÃäA Ç ÈÉÊË ÌÍÎÏ N ÒÓÔÕö ÙÚÛü àáâãäa ç èéêë ìíîï n òóôõöo ùúûü.mp3

samples/playlists.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"source" : "C:\\Music\\SampleMusic.mp3"
109109
}, {
110110
"repeatCount" : 1.0,
111-
"source" : "C:\\Music\\ExampleMusic.mp3"
111+
"source" : "C:\\Music\\ÀÁÂÃäA Ç ÈÉÊË ÌÍÎÏ N ÒÓÔÕö ÙÚÛü àáâãäa ç èéêë ìíîï n òóôõöo ùúûü.mp3"
112112
} ]
113113
},
114114
"m3u/playlist-utf16le-bom.m3u" : {
@@ -117,7 +117,7 @@
117117
"source" : "C:\\Music\\SampleMusic.mp3"
118118
}, {
119119
"repeatCount" : 1.0,
120-
"source" : "C:\\Music\\ExampleMusic.mp3"
120+
"source" : "C:\\Music\\ÀÁÂÃäA Ç ÈÉÊË ÌÍÎÏ N ÒÓÔÕö ÙÚÛü àáâãäa ç èéêë ìíîï n òóôõöo ùúûü.mp3"
121121
} ]
122122
},
123123
"m3u/playlist-utf8-bom.m3u" : {
@@ -126,16 +126,16 @@
126126
"source" : "C:\\Music\\SampleMusic.mp3"
127127
}, {
128128
"repeatCount" : 1.0,
129-
"source" : "C:\\Music\\ExampleMusic.mp3"
129+
"source" : "C:\\Music\\ÀÁÂÃäA Ç ÈÉÊË ÌÍÎÏ N ÒÓÔÕö ÙÚÛü àáâãäa ç èéêë ìíîï n òóôõöo ùúûü.mp3"
130130
} ]
131131
},
132-
"m3u/playlist-utf8.m3u" : {
132+
"m3u/playlist-iso-8859-1.m3u" : {
133133
"rootSequence" : [ {
134134
"repeatCount" : 1.0,
135135
"source" : "C:\\Music\\SampleMusic.mp3"
136136
}, {
137137
"repeatCount" : 1.0,
138-
"source" : "C:\\Music\\ExampleMusic.mp3"
138+
"source" : "C:\\Music\\ÀÁÂÃäA Ç ÈÉÊË ÌÍÎÏ N ÒÓÔÕö ÙÚÛü àáâãäa ç èéêë ìíîï n òóôõöo ùúûü.mp3"
139139
} ]
140140
},
141141
"m3u/test01.m3u" : {

0 commit comments

Comments
 (0)