Skip to content

Commit a62cad3

Browse files
author
Norbert Kuemin
committed
fix import
1 parent 79af821 commit a62cad3

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

admin/helpers/cvs.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ public static function saveCVS($data, $encoding, $filename, $delimiter = ';') {
3838
}
3939

4040
public static function loadCVS($content, $encoding, $delimiter = ';') {
41-
if ($encoding != "UTF-8") {
42-
$content = iconv($encoding, "UTF-8"."//TRANSLIT", $content);
43-
}
41+
$content = mb_convert_encoding($content, $encoding, 'Windows-1252');
42+
//$content = iconv($encoding, "UTF-8"."//TRANSLIT", $content);
4443
if (substr($content,0,3) == "\357\273\277") { $content = substr($content,3); } //Remove known BOM
4544
return self::cvs2array($content, $delimiter);
4645
}

admin/sql/install.mysql.utf8.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ CREATE TABLE IF NOT EXISTS `#__nokCM_persons` (
3636
KEY `idx_hh_person_id` (`hh_person_id`),
3737
KEY `idx_user_id` (`user_id`),
3838
KEY `idx_remote` (`name`,`firstname`,`address`,`city`,`birthday`)
39-
) DEFAULT CHARSET=utf8;
39+
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
4040

4141
CREATE TABLE IF NOT EXISTS `#__nokCM_memberships` (
4242
`id` integer NOT NULL auto_increment,
@@ -53,7 +53,7 @@ CREATE TABLE IF NOT EXISTS `#__nokCM_memberships` (
5353
PRIMARY KEY (`id`),
5454
KEY `idx_person_id` (`person_id`),
5555
KEY `idx_remote` (`person_id`,`type`,`begin`)
56-
) DEFAULT CHARSET=utf8;
56+
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
5757

5858
CREATE TABLE IF NOT EXISTS `#__nokCM_board` (
5959
`id` integer NOT NULL auto_increment,
@@ -71,5 +71,5 @@ CREATE TABLE IF NOT EXISTS `#__nokCM_board` (
7171
PRIMARY KEY (`id`),
7272
KEY `idx_person_id` (`person_id`),
7373
KEY `idx_remote` (`person_id`,`job`,`begin`)
74-
) DEFAULT CHARSET=utf8;
74+
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
7575

com_clubmanagement.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<creationDate>December 2017</creationDate>
77
<copyright>(C) 2017 Norbert Kuemin</copyright>
88
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
9-
<version>3.0.21</version>
9+
<version>3.0.22</version>
1010
<description>COM_CLUBMANAGEMENT_XML_DESC</description>
1111

1212
<install>

0 commit comments

Comments
 (0)