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

replace can not accept a unicode character like \u{FEFF} #375

Open
Dirreke opened this issue Nov 15, 2023 · 1 comment
Open

replace can not accept a unicode character like \u{FEFF} #375

Dirreke opened this issue Nov 15, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Dirreke
Copy link

Dirreke commented Nov 15, 2023

Feature Description

I use readfile to read a file with utf-8-BOM and I get a string start with \u{FEFF}, which means BOM and we can not see it when we print it. I have no idea about delete it.

(using utf-8-BOM because if set the output format of powershell to utf-8(the default is utf-16LE), it will always use BOM to create file.)

by the way, if readfile will support more encoding format like utf-16LE, GBK ...

Describe The Solution You'd Like

make replace able to accept the unicode character.

@sagiegurari
Copy link
Owner

@Dirreke there is readbinfile for reading binary files and getting raw data so encoding won't impact anything.
or you can improve the readfile implementation via PR?

@sagiegurari sagiegurari added the enhancement New feature or request label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants