Skip to content

Bug Fix: reading double-byte characters in import_wpa()#76

Merged
martinctc merged 1 commit into
mainfrom
feat/encoding-for-import_wpa
Feb 18, 2021
Merged

Bug Fix: reading double-byte characters in import_wpa()#76
martinctc merged 1 commit into
mainfrom
feat/encoding-for-import_wpa

Conversation

@martinctc

@martinctc martinctc commented Feb 18, 2021

Copy link
Copy Markdown
Member

Summary

This branch added the ability to specify encoding for import_wpa(). The new default used is 'UTF-8'.

Changes

The changes made in this PR are:

  1. Added a new argument encoding in import_wpa(). This feature feeds onto the underlying data.table::fread() function. The default is changed to 'UTF-8' to work with double-byte characters.

This has been tested with some dummy data and works:

image

Checks

  • All R CMD checks pass
  • roxygen2::roxygenise() has been run prior to merging to ensure that .Rd and NAMESPACE files are up to date.

Notes

This fixes #73.

Added the ability to specify encoding for `import_wpa()`. The new default used is 'UTF-8'.
@martinctc martinctc linked an issue Feb 18, 2021 that may be closed by this pull request
@martinctc martinctc marked this pull request as ready for review February 18, 2021 18:37
@martinctc martinctc self-assigned this Feb 18, 2021
@martinctc martinctc added the bug Something isn't working label Feb 18, 2021
@martinctc martinctc merged commit f416484 into main Feb 18, 2021
@martinctc martinctc deleted the feat/encoding-for-import_wpa branch February 18, 2021 18:41
@Yuichen12

Copy link
Copy Markdown

Very spot-on fix! Thank you for acting so promptly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

import_wpa does not support double-bite characters

2 participants