# Importing String Tables from C++

**URL:** <https://forums.unrealengine.com/t/importing-string-tables-from-c/726819>\
**Category:** C++\
**Tags:** String-Tables, unreal-engine, CPP, question\
**Created:** [December 12, 2022, 8:04pm UTC](https://forums.unrealengine.com/t/importing-string-tables-from-c/726819 "2022-12-12T20:04:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markcham](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@markcham](https://forums.unrealengine.com/u/markcham)\
**Post date:** [December 12, 2022, 8:04pm UTC](https://forums.unrealengine.com/t/importing-string-tables-from-c/726819/1 "2022-12-12T20:04:06Z")

</div>

Hello, I’m having trouble importing .csv files as string tables in C++.

I’ve followed the instructions from [this tutorial by Benui](https://benui.ca/unreal/stringtable-cpp/#in-c) but the tables still aren’t visible inside the editor, and I just get `<Missing string table entry>` when I try to reference a table in C++.

This is what my C++ looks like inside my MyProject.cpp file:

```nohighlight
#include "MyProject.h"
#include "Internationalization/StringTableRegistry.h"
#include "Modules/ModuleManager.h"

void FMyProject::StartupModule()
{
	FDefaultGameModuleImpl::StartupModule();

LOCTABLE_FROMFILE_GAME("WebBrowserOverlayStrings","WebBrowserOverlayStrings","NonAssets/WebBrowserOverlay.csv");
LOCTABLE_FROMFILE_GAME("TooltipStrings","TooltipStrings","NonAssets/Tooltips.csv");
LOCTABLE_FROMFILE_GAME("LoginStrings","LoginStrings","NonAssets/Login.csv");

	// Trying to create a new one didn't work either
	LOCTABLE_NEW("CodeStringTable","CodeStringTable");
	LOCTABLE_SETSTRING("CodeStringTable","HelloWorld","Hello World!");
	LOCTABLE_SETMETA("CodeStringTable","HelloWorld","Comment","This is a comment about hello world");
	LOCTABLE_SETSTRING("CodeStringTable","GoodbyeWorld","Goodbye World!");
	LOCTABLE_SETMETA("CodeStringTable","GoodbyeWorld","Comment","This is a comment about goodbye world");
}

void FMyProject::ShutdownModule()
{
	FDefaultGameModuleImpl::ShutdownModule();
}

IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, MyProject, "MyProject" );

```

I’ve included the directory (NonAssets) in the “Additional NonAssets to include”, which is at the root of my Content folder.

The format of my CSV files are like so:

```nohighlight
Key,SourceString
"SomeKeyText","Text that corresponds to the key."

```

Would greatly appreciate some help!

Thanks,  
Mark

---

<div class="post-metadata">

**Author:** ![xabk13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xabk13](https://forums.unrealengine.com/u/xabk13)\
**Post date:** [January 2, 2024, 2:42pm UTC](https://forums.unrealengine.com/t/importing-string-tables-from-c/726819/2 "2024-01-02T14:42:02Z")

</div>

Hey! A wild guess, does your project root contain a space? Like, “My Documents/…”?

(It’s just Unreal has this bug with spaces in paths when it comes to CSV string tables: [Editor and Loc Dashboard fail to load CSV string tables if there's a space in the path](https://forums.unrealengine.com/t/editor-and-loc-dashboard-fail-to-load-csv-string-tables-if-theres-a-space-in-the-path/475870))
