# Strange characters in windows terminal

**URL:** <https://discourse.julialang.org/t/strange-characters-in-windows-terminal/89355>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 27, 2022, 10:03am UTC](https://discourse.julialang.org/t/strange-characters-in-windows-terminal/89355 "2022-10-27T10:03:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![digital\_carver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/digital_carver/32/33818_2.png) [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Post date:** [October 27, 2022, 12:55pm UTC](https://discourse.julialang.org/t/strange-characters-in-windows-terminal/89355/4 "2022-10-27T12:55:53Z")

</div>

StringManipulations.jl has a [remove\_decorations](https://github.com/ronisbr/StringManipulation.jl#remove-the-decorations) function that can remove ANSI escape sequences from a string.

```julia
julia> str = "Test 😅 \e[38;5;231;48;5;243mTest 😅 \e[38;5;201;48;5;243mTest\e[0m";

julia> remove_decorations(str)
"Test 😅 Test 😅 Test"

```

ANSIColoredPrinters.jl also has a [PlainTextPrinter](https://docs.juliahub.com/ANSIColoredPrinters/VW3io/0.0.1/output-formats/#plain_text) that removes ANSI escape codes, though slightly less convenient to use.  
StringManipulations accepts a normal string and returns a string, so it just requires `println(msg)` to become `println(remove_decorations(msg))`.

---

_[View the full topic](https://discourse.julialang.org/t/strange-characters-in-windows-terminal/89355)._
