[#BloombergLP-bdljsn-Tokenizer-setAllowNonUtf8StringLiterals]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Tokenizer.adoc[Tokenizer]::setAllowNonUtf8StringLiterals
:relfileprefix: ../../../
:mrdocs:

Set the `allowNonUtf8StringLiterals` option to the specified `value`&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;tokenizer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Tokenizer.adoc[Tokenizer]&
setAllowNonUtf8StringLiterals(bool value);
----

== Description

Return a non&hyphen;`const` reference to this tokenizer&period; If the `allowNonUtf8StringLiterals` value is `false` this tokenizer will check string literal tokens for invalid UTF&hyphen;8, enter an error mode if it encounters a string literal token that has any content that is not UTF&hyphen;8, and fail to advance to subsequent tokens until `reset` is called&period; By default, the value of the `allowNonUtf8StringLiterals` option is `true`&period; The behavior is undefined unless `e&lowbar;RELAXED &equals;&equals; conformanceMode()`&period;

== Return Value

a non&hyphen;`const` reference to this tokenizer

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| new value for `allowNonUtf8StringLiterals`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
