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

When exporting CSV data, Unicode prefix is not properly set #3543

Closed
trytrytogo opened this issue May 7, 2020 · 6 comments
Closed

When exporting CSV data, Unicode prefix is not properly set #3543

trytrytogo opened this issue May 7, 2020 · 6 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@trytrytogo
Copy link

trytrytogo commented May 7, 2020

hi, i installed 1.2.12 on centos7 with mysql Ver 15.1 Distrib 10.4.12-MariaDB and rrdtool 1.7.2.

1:
i saw 1.2.12 have resolve the problem "issue#3427: When exporting to a CSV with unicode characters, contents can become garbled". i read #3427.
so i exported a data. it's wrong.
first, i use Chinese as my "User Language", my graph title name is "联通 - Polling Time". i exported data.
image

then, i use English as my "User Language", i exported data too.
image
it's a new bug or others?

2:
i found the "Interface - Traffic Data Template", in "Maximum Value" can use |query_ifSpeed|, i want to use |query_ifHighSpeed| ,it's wrong. it's a new feature?

thanks all to creat cacti.

@trytrytogo trytrytogo added bug Undesired behaviour unverified Some days we don't have a clue labels May 7, 2020
@netniV
Copy link
Member

netniV commented May 7, 2020

You should open the second as a separate issue

@trytrytogo
Copy link
Author

You should open the second as a separate issue

i'm sorry. i will create a new issue.

@TheWitness
Copy link
Member

Can you please edit:

graph_xport.php, line 211 and change:

print mb_convert_encoding($output, 'UTF-16LE', 'UTF-8');

to

print $output;

And let us know how the output looks?

@trytrytogo
Copy link
Author

@TheWitness
I'm very sorry to be late answering.
i install 1.2.10. but i will have a test later on 1.2.12.

@TheWitness
Copy link
Member

No problem. Thanks.

@trytrytogo
Copy link
Author

@TheWitness
RRDtool 1.4.8
mysql Ver 15.1 Distrib 10.4.12-MariaDB, for Linux (x86_64) using readline 5.1
CentOS Linux release 7.7.1908 (Core)
Cacti 1.2.12
Apache/2.4.6 (CentOS)
i use this config to try a test. it's great. all word are right. like this.
image
thanks all people to help resovle this problem.
Thanks to all.
in the end. I'm very sorry to be late answering.

@TheWitness TheWitness changed the title About export "Title" and "Data Source Item" CSV Export output readability issues using UTF8 characters Jun 7, 2020
@TheWitness TheWitness removed the unverified Some days we don't have a clue label Jun 7, 2020
TheWitness added a commit that referenced this issue Jun 7, 2020
CSV Export output readability issues using UTF8 characters
@TheWitness TheWitness added the resolved A fixed issue label Jun 7, 2020
@TheWitness TheWitness added this to the 1.2.13 milestone Jun 7, 2020
@netniV netniV changed the title CSV Export output readability issues using UTF8 characters When exporting CSV data, Unicode prefix is not properly set Jul 12, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

3 participants