Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tee-Object should have an -Encoding parameter #11104

Copy link
Copy link
@mklement0

Description

@mklement0
Issue body actions

Summary of the new feature/enhancement

Tee-Object currently invariably uses the default character encoding when teeing to a file (-Path aka -Filepath, -LiteralPath), which in PS Core is BOM-less UTF-8

However, sometimes you need a specific character encoding, and Tee-Object currently offers no way to specify a different encoding.

Proposed technical implementation details (optional)

Introduce an -Encoding parameter (to be combined only with the -Path / -FilePath or -LiteralPath, analogous to the parameter of the same name already supported by other write-to-file cmdlets such as Out-File.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    First-Time-IssueEasy issues first time contributors can work on to learn about this projectEasy issues first time contributors can work on to learn about this projectIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.