# Strings and static compilation

**URL:** <https://discourse.julialang.org/t/strings-and-static-compilation/119474>\
**Category:** General Usage\
**Tags:** staticcompiler\
**Created:** [September 16, 2024, 4:20am UTC](https://discourse.julialang.org/t/strings-and-static-compilation/119474 "2024-09-16T04:20:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony.Anikos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/anthony.anikos/32/211929_2.png) [@Anthony.Anikos](https://discourse.julialang.org/u/Anthony.Anikos)\
**Post date:** [September 16, 2024, 4:20am UTC](https://discourse.julialang.org/t/strings-and-static-compilation/119474/1 "2024-09-16T04:20:25Z")

</div>

Hi! Does anyone know how to translate a string variable of type  
julia\_string‘=’hello’  
into a C-like string equivalent to  
c ‘Hello’  
which StaticCompilator accepts and does not swear at incorrect characters…  
Thanks in advance. Tried a bunch of variants, but everything doesn’t work ☹

---

<div class="post-metadata">

**Author:** ![\_bernhard](https://avatars.discourse-cdn.com/v4/letter/_/bc79bd/32.png) [@\_bernhard](https://discourse.julialang.org/u/_bernhard)\
**Post date:** [September 16, 2024, 9:15pm UTC](https://discourse.julialang.org/t/strings-and-static-compilation/119474/2 "2024-09-16T21:15:58Z")

</div>

In Julia single quotes are used to denote characters (`'a'`). To create a string use double quotes (`"abcde"`).
