Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
voting.typo3.org
extensions
election
Commits
1c938b59
Commit
1c938b59
authored
Mar 13, 2019
by
Stefan Busemann
Browse files
[BUGFIX] dont use windows-1252 for csv encoding / decoding
parent
3a8df0ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Utility/CsvUtility.php
View file @
1c938b59
...
...
@@ -80,7 +80,6 @@ class CsvUtility
if
(
strpos
(
$value
,
';'
)
!==
false
)
{
$value
=
'"'
.
str_replace
(
'"'
,
'\"'
,
$value
)
.
'"'
;
}
$value
=
iconv
(
'UTF-8'
,
'Windows-1252'
,
$value
);
return
$value
;
}
...
...
@@ -99,7 +98,7 @@ class CsvUtility
if
(
strlen
(
$match
)
<
1
)
{
$match
=
$matches
[
'quotedValue'
][
$matchIndex
];
}
$result
[
$matchIndex
]
=
iconv
(
'Windows-1252'
,
'UTF-8//TRANSLIT'
,
$match
);
;
$result
[
$matchIndex
]
=
$match
;
}
return
$result
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment