## String::FromUtf8(const char *) method


Creates [String](../) from utf8 string.

```cpp
static String System::String::FromUtf8(const char *utf8)
```


| Parameter | Type | Description |
| --- | --- | --- |
| utf8 | const char * | Pointer to null-terminated string encoded using utf8 codepage. |

### ReturnValue

[String](../) object representing passed string.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::FromUtf8(const char *, int) method


Creates [String](../) from utf8 string.

```cpp
static String System::String::FromUtf8(const char *utf8, int len)
```


| Parameter | Type | Description |
| --- | --- | --- |
| utf8 | const char * | Pointer to string encoded using utf8 codepage. |
| len | int | Number of characters to handle. |

### ReturnValue

[String](../) object representing passed string.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::FromUtf8(const std::string\&) method


Creates [String](../) from utf8 string.

```cpp
static String System::String::FromUtf8(const std::string &utf8)
```


| Parameter | Type | Description |
| --- | --- | --- |
| utf8 | const std::string\& | Pointer to string encoded using utf8 codepage. |

### ReturnValue

[String](../) object representing passed string.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## String::FromUtf8(const uint8_t *) method


Creates [String](../) from utf8 string.

```cpp
static String System::String::FromUtf8(const uint8_t *utf8)
```


| Parameter | Type | Description |
| --- | --- | --- |
| utf8 | const uint8_t * | Pointer to null-terminated string encoded using utf8 codepage. |

### ReturnValue

[String](../) object representing passed string.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
