# GetStringUTFChars(nint)

> Returns a managed string object representing the string in modified UTF-8 encoding.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

## GetStringUTFChars(IntPtr)

```csharp
public static string GetStringUTFChars(nint str)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The Java string.

### Returns

| Type                                                           | Description                                                   |
| -------------------------------------------------------------- | ------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The string, converted from its modified UTF-8 representation. |

### Remarks

This method is a modification of the original \\\<tt\\>GetStringUTFChars\\\</tt\\>, which returns a pointer to an array of bytes.

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
