# How can I get back the original string after I converted it to codeunits?

**URL:** <https://discourse.julialang.org/t/how-can-i-get-back-the-original-string-after-i-converted-it-to-codeunits/54267>\
**Category:** General Usage\
**Created:** [January 30, 2021, 12:44pm UTC](https://discourse.julialang.org/t/how-can-i-get-back-the-original-string-after-i-converted-it-to-codeunits/54267 "2021-01-30T12:44:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BridgeBot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bridgebot/32/21491_2.png) [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Post date:** [January 30, 2021, 12:44pm UTC](https://discourse.julialang.org/t/how-can-i-get-back-the-original-string-after-i-converted-it-to-codeunits/54267/1 "2021-01-30T12:44:17Z")

</div>

How can I get back the original string after I converted it to codeunits, e.g. `f(codeunits("test")) = "test"` ?

Note that the poster on Slack cannot see your response here on Discourse. Consider answering the question there or pinging the poster here on Discourse so they see the reponse.  
[(Original message :slack:)](https://julialang.slack.com/archives/C6A044SQH/p1612010604181600?thread_ts=1612010604.181600&cid=C6A044SQH)

---

<div class="post-metadata">

**Author:** ![merckxiaan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/merckxiaan/32/4697_2.png) [@merckxiaan](https://discourse.julialang.org/u/merckxiaan)\
**Post date:** [January 30, 2021, 12:46pm UTC](https://discourse.julialang.org/t/how-can-i-get-back-the-original-string-after-i-converted-it-to-codeunits/54267/2 "2021-01-30T12:46:44Z")

</div>

The answer turned out to be `String`: `String(codeunits("test")) == "test"`
