# PCG HLSL fails to compile when the graph's name or path have non-English characters

**URL:** <https://forums.unrealengine.com/t/pcg-hlsl-fails-to-compile-when-the-graphs-name-or-path-have-non-english-characters/2656480>\
**Category:** Programming & Scripting\
**Tags:** gpu, unreal-engine, question\
**Created:** [September 14, 2025, 5:39am UTC](https://forums.unrealengine.com/t/pcg-hlsl-fails-to-compile-when-the-graphs-name-or-path-have-non-english-characters/2656480 "2025-09-14T05:39:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![piggest\_pig](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/piggest_pig/32/1169069_2.png) [@piggest\_pig](https://forums.unrealengine.com/u/piggest_pig)\
**Post date:** [September 14, 2025, 5:39am UTC](https://forums.unrealengine.com/t/pcg-hlsl-fails-to-compile-when-the-graphs-name-or-path-have-non-english-characters/2656480/1 "2025-09-14T05:39:18Z")

</div>

Hi, I’m using PCG with GPU nodes in UE5.6. Once I name it with Chinese characters or put under a Chinese directory, it will break down.  
It seems unusual that path name matters. I’ve written HLSL code in materials and Niagara and they don’t have such problem.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/5/ba5103c3b4a4ea91810cb7c169b9c99382708f1d.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/1/6516700589f22716b6c958c5bb7808ac15f7f303.png)

---

<div class="post-metadata">

**Author:** ![piggest\_pig](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/piggest_pig/32/1169069_2.png) [@piggest\_pig](https://forums.unrealengine.com/u/piggest_pig)\
**Post date:** [February 12, 2026, 2:20pm UTC](https://forums.unrealengine.com/t/pcg-hlsl-fails-to-compile-when-the-graphs-name-or-path-have-non-english-characters/2656480/2 "2026-02-12T14:20:34Z")

</div>

This problem still exists in UE 5.7 😭  
Even worse, some nodes have been localized to Chinese, and they are broken by default. I must rename those nodes every time.

---

<div class="post-metadata">

**Author:** ![lkzsteam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lkzsteam](https://forums.unrealengine.com/u/lkzsteam)\
**Post date:** [March 23, 2026, 7:37am UTC](https://forums.unrealengine.com/t/pcg-hlsl-fails-to-compile-when-the-graphs-name-or-path-have-non-english-characters/2656480/3 "2026-03-23T07:37:59Z")

</div>

Good afternoon. UE 5.7.3. There is another similar problem. The very name of the HLSL user node is localized. As a result, we get an error with the name of the computational shader core:

Warning: Shader minification failed.  
[PCGVolume] Error: [231,6] expected unqualified-id void ???\_HLSL\_PCGCustomHLSLKernel(uint3 GroupId : SV\_GroupID, uint GroupIndex : SV\_Groupindex) [PCGVolume] Error: /Engine/Transient/PCGB\_GPU\_Spawner/???\_HLSL\_PCGCustomHLSLKernel: Shader compilation failed.

---

<div class="post-metadata">

**Author:** ![piggest\_pig](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/piggest_pig/32/1169069_2.png) [@piggest\_pig](https://forums.unrealengine.com/u/piggest_pig)\
**Post date:** [March 23, 2026, 12:20pm UTC](https://forums.unrealengine.com/t/pcg-hlsl-fails-to-compile-when-the-graphs-name-or-path-have-non-english-characters/2656480/4 "2026-03-23T12:20:28Z")

</div>

Hello,

I have investigated how Niagara compiles non-English variables, and it turns out that there’s a special function to handle their names

```cpp
/** Replaces all non-ascii characters with a "ASCXXX" string, where XXX is their int value */
static NIAGARAEDITOR_API FString ConvertToAsciiString(FString Name);

```

Unfortunately, PCG doesn’t support such thing. We must explicitly use English names.

The good news is, I have found a method to overwrite the localized text, so that the Custom HLSL node can recover its English name by default:

1. Create an editor utility object

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/0/ee07090d3fae79c6e8e82e37fb5f1ec0a8bb4ed4.png)

1. Check “Run on Start up” in the class defaults

2. Override the “Run” function as follows

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/4/0647afaa3a977eb1b1b2a65d502d2bae728ead11.png)

That’s it. This program will automatically run when you open the project, and hopefully you can place new Custom HLSL nodes with overwritten names. It saves some renaming efforts.

---

<div class="post-metadata">

**Author:** ![lkzsteam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lkzsteam](https://forums.unrealengine.com/u/lkzsteam)\
**Post date:** [March 23, 2026, 1:51pm UTC](https://forums.unrealengine.com/t/pcg-hlsl-fails-to-compile-when-the-graphs-name-or-path-have-non-english-characters/2656480/5 "2026-03-23T13:51:35Z")

</div>

You’re absolutely right! This solved the problem with node localization. Thank you very much! 😀
