Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing *.csv with special characters #282

Closed
avs-code opened this issue Sep 30, 2018 · 5 comments
Closed

Importing *.csv with special characters #282

avs-code opened this issue Sep 30, 2018 · 5 comments
Milestone

Comments

@avs-code
Copy link
Contributor

avs-code commented Sep 30, 2018

v7.0.0-180920-61c7a3
When a csv with special characters (ñ á é í ó) are imported, data isn't being imported correctly:

*.csv uft8 - mysql uft8_unicode_ci

Importing:
icao,iata,name,location,country,timezone,hub,lat,lon,ground_handling_cost,fuel_100ll_cost,fuel_jeta_cost,fuel_mogas_cost
LEMD,MAD,"Adolfo Suárez Madrid?Barajas Airport",Madrid,Spain,Europe/Madrid,1,40.4719,-3.5626,,4.42,4,
Result in:
icao,iata,name,location,country,timezone,hub,lat,lon,ground_handling_cost,fuel_100ll_cost,fuel_jeta_cost,fuel_mogas_cost
"LEMD","MAD","LEMD","Adolfo Su","Madrid","Spain","Europe/Madrid","1","40.4719","-3.5626",NULL,"4.42","4.00",NULL

@nabeelio
Copy link
Owner

nabeelio commented Oct 1, 2018

Is it truncating the name?

@avs-code
Copy link
Contributor Author

avs-code commented Oct 1, 2018

Yes
I checked again, and when you export the csv from phpvms7 its in ANSI:
ICAO LEMD:

Adolfo Suárez Madrid?Barajas Airport

It may be that when reimporting it from ANSI it is truncated?

Adolfo Su

With notepad++ I select convert to UTF-8 without boom and after that I import the csv in phpvms7 admin panel and not issues, except the ? that previously was a - or similars characters that appear when exporting in ANSI.

@nabeelio
Copy link
Owner

nabeelio commented Oct 1, 2018

Can you attach the CSV you're using? I can check see what's going on. I think you're onto something RE ANSI

@avs-code
Copy link
Contributor Author

avs-code commented Oct 1, 2018

@nabeelio nabeelio added this to the beta milestone Apr 8, 2019
@stale stale bot added the wontfix label Jun 20, 2019
Repository owner deleted a comment from stale bot Jun 21, 2019
nabeelio added a commit that referenced this issue Jul 17, 2019
@nabeelio
Copy link
Owner

Ok so I adjusted the exporter to go to utf-8. I'm not sure why I had forced it to iso. The sample file above is trashed (sorry) so you'll need to export from fresh.

nabeelio added a commit that referenced this issue Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants