# 7 Test Table Output For Weird Chars

7 Test Table Output For Weird Chars on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML)

Stars**1025**

Forks**115**

Open issues**0**

PowerShell Gallery downloads**7576901**

Release**v1.45.0**

Language: PowerShell Updated: 2026-11-19

Curated Examples

An example script from the PSWriteHTML repository.

- Source repository: [https://github.com/EvotecIT/PSWriteHTML](https://github.com/EvotecIT/PSWriteHTML)
- Example group: `Example-Table`

```powershell
Import-Module .\PSWriteHTML.psd1 -Force

Get-Process | Select-Object -First 50 | Out-HtmlView -SearchRegularExpression -FilePath "$PSScriptRoot\Example7_TestTableOutputForWeirdChars.html01" -Online -Filtering -DataStore JavaScript

$Test1 = [PSCustomObject] @{
    Number     = 1
    Number2    = 2.2
    Bool       = $false
    Array      = @(
        'C:\Users\1Password.exe'
        "C:\Users\Ooops.exe"
        "\\EvoWin\c$\Users\przemyslaw klys\AppData\Local\1password\This is other\7\1Password.exe"
        "\\EvoWin\c$\Users\przemyslaw.klys\AppData\Local\1password\This is other\7\1Password.exe"
    )
    EmptyArray = @()
    EmptyList  = [System.Collections.Generic.List[string]]::new()
    HashTable  = @{
        NumberAgain       = 2
        OrderedDictionary = [ordered] @{
            String    = 'test'
            HashTable = @{
                StringAgain = "oops"
            }
        }
        Array             = @(
            'C:\Users\1Password.exe'
            "C:\Users\Ooops.exe"
            "\\EvoWin\c$\Users\przemyslaw klys\AppData\Local\1password\This is other\7\1Password.exe"
            "\\EvoWin\c$\Users\przemyslaw.klys\AppData\Local\1password\This is other\7\1Password.exe"
        )
    }
    DateTime   = Get-Date
}

$Test1 | Out-HtmlView -SearchRegularExpression -FilePath "C:\Temp\test.html" -Online -Filtering -DataStore JavaScript

$DataTable3 = @(
    $PropertyName1 = 'Test' + [System.Environment]::NewLine + 'Test3'
    $PropertyName2 = 'Test' + [System.Environment]::NewLine + 'Test4'; ##+ "`n Test"
    [PSCustomObject] @{
        'Test1'        = 'Test' + [System.Environment]::NewLine + 'test3'
        'Test2'        = 'Test' + [System.Environment]::NewLine + 'test3' + "`n test"
        'Test3'        = 'Test' + [System.Environment]::NewLine + 'test3' + "`r`n test"
        'Test4'        = 'Test' + [System.Environment]::NewLine + 'test3' + "`r test"
        'Test5'        = 'Test' + "`r`n" + 'test3' + "test"
        'Test6'        = @"
        Test1
        Test2
        Test3

        Test4
"@
        'Test7'        = 'Test' + "`n`n" + "Oops"
        'Test9'        = 'Test' + "<Br>" + "Oops"
        'Test8"Oopps"' = 'MyTest "Ofcourse"'
        "Test9'Ooops'" = "MyTest 'Ofcourse'"
        $PropertyName1 = 'Test' + [System.Environment]::NewLine + 'test3'
        $PropertyName2 = 'Test' + [System.Environment]::NewLine + 'test3'
        'Property1'    = 'Test1'
        'property2'    = 'Test2'
    }
)

<#
$DataTable3 | ConvertTo-JsonLiteral -NewLineFormat @{
    NewLineCarriage = '<br>'
    NewLine         = "\n"
    Carriage        = "\r"
}
$DataTable3 | ConvertTo-JsonLiteral
$DataTable3 | ConvertTo-Json
#>


$DataTable3 | ConvertTo-PrettyObject

New-HTML {
    New-HTMLTableOption -DataStore JavaScript #-NewLineCarriage '\r\n'
    New-HTMLTable -DataTable $DataTable3
} -ShowHTML -FilePath "$PSScriptRoot\Example7_TestTableOutputForWeirdChars02.html" -Online
```

<!-- PowerForge markdown artifact sha256:D5420E16A33DD7A39105956A102BE612695094BBEF2BAD61573F22E8D99B7ED9 -->
