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

export-excel encoding codepage #1662

Open
evanefsvals opened this issue Nov 26, 2024 · 5 comments
Open

export-excel encoding codepage #1662

evanefsvals opened this issue Nov 26, 2024 · 5 comments

Comments

@evanefsvals
Copy link

Hi Team,

Is there a way for export-excel to use specific encoding instead of first export to csv and then to xlsx?
I need to use Windows-1252 encoding for export.

Thanks

@dfinke
Copy link
Owner

dfinke commented Nov 26, 2024

Please say a bit more of what you are trying to do. I have never worked with that sort of encoding.

@evanefsvals
Copy link
Author

evanefsvals commented Dec 13, 2024

Hello Doug,

Sorry for the late reply.
Here is an example of the error message I am getting.

Is that related to encoding or with something else?
The source of that text is from a Dutch server.

Kind regards,
Evan

@scriptingstudio
Copy link

"smb acl marketing en communicatie mr".length
36

Simple test. Try to rename any sheet in Excel to "smb acl marketing en communicatie mr" (or any other text). You'll get the result from your screenshot, "smb acl marketing en communicat".

"smb acl marketing en communicat".length
31

This says that a sheet name has a length limitation. This is the reason of the issue.

@evanefsvals
Copy link
Author

Thanks. Is there a way to suppress the warning?

@scriptingstudio
Copy link

Thanks. Is there a way to suppress the warning?

parameter -WarningAction SilentlyContinue or -WarningAction Ignore
Or global setting $WarningPreference = 'SilentlyContinue'

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

3 participants