Skip to content

Fix export_util.py to encode in the UTF-8 #554

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

Merged
merged 2 commits into from
Mar 21, 2025
Merged

Conversation

antejavor
Copy link
Contributor

@antejavor antejavor commented Mar 6, 2025

Description

The export_util query module didn't specify the export encoding. If your data had special characters not supported by ASCII, they would be saved as garbage in the exported file, or the export would fail. We have fixed this by predefining the UTF-8 encoding in the export utility to support special characters. #554

Pull request type

  • Bugfix
  • Algorithm/Module
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Related issues

Closes: #553

######################################

Reviewer checklist (the reviewer checks this part)

Module/Algorithm

  • Core algorithm/module implementation
  • Query module implementation
  • Tests provided (unit / e2e)
  • Code documentation
  • README short description

Documentation checklist

  • Add the documentation label tag
  • Add the bug / feature label tag
  • Add the milestone for which this feature is intended
    • If not known, set for a later milestone
  • Write a release note, including added/changed clauses
    • The export_util query module didn't specify the export encoding. If your data had special characters not supported by ASCII, they would be saved as garbage in the exported file, or the export would fail. We have fixed this by predefining the UTF-8 encoding in the export utility to support special characters #554
  • Link the documentation PR here
    • [Documentation PR link]
  • Tag someone from docs team in the comments

@antejavor antejavor self-assigned this Mar 6, 2025
@antejavor antejavor added bug bug Docs unnecessary Docs unnecessary labels Mar 6, 2025
@antejavor antejavor marked this pull request as ready for review March 6, 2025 13:43
@antejavor antejavor added this to the mage-v3.1.1 milestone Mar 20, 2025
@imilinovic imilinovic self-requested a review March 21, 2025 14:22
@imilinovic imilinovic added this pull request to the merge queue Mar 21, 2025
Merged via the queue into main with commit 13cb8c1 Mar 21, 2025
8 checks passed
@imilinovic imilinovic deleted the fix-export-encoding branch March 21, 2025 14:23
Josipmrden pushed a commit that referenced this pull request Mar 24, 2025
github-merge-queue bot pushed a commit that referenced this pull request Mar 25, 2025
* Add migration from neo4j

* Update migration

* Add labels for migration from neo4j

* added PR test to merge_group (#571)

* Fix export encoding to UTF-8 (#554)

Co-authored-by: Ivan Milinović <[email protected]>

* Add constants for connection

* Refactor module

* Address PR comments

---------

Co-authored-by: Dr Matt James <[email protected]>
Co-authored-by: Ante Javor <[email protected]>
Co-authored-by: Ivan Milinović <[email protected]>
@gitbuda gitbuda added Docs - changelog only Docs - changelog only and removed Docs unnecessary Docs unnecessary labels Mar 28, 2025
@gitbuda gitbuda mentioned this pull request Mar 28, 2025
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug Docs - changelog only Docs - changelog only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unicode error when exporting data with accents using csv_graph
3 participants