# llToUpper

*LSL function*

```lsl
string string llToUpper(string src);
```

- `string src`: Source string to convert.

- Returns: `string`
- Energy: 10

Returns an uppercase copy of the string src. Converts all unicode characters, not just ASCII.

The opposite is [llToLower](/functions/llToLower/).

Returns a [string](https://wiki.secondlife.com/wiki/string) that is **src** with all upper-case characters.

```lsl title="How to use" frame="terminal"
string result = llToUpper("");
```

## Caveats

- There is no Linden Library "llToProperCase", which would return *[correctly](http://en.wikipedia.org/wiki/Sentence_case)* capitalized strings; However, there are user functions that do this: [ToNormal](https://wiki.secondlife.com/wiki/User:Fred_Gandt/Scripts/Functions#tonormal)
- The function also works for many characters outside the 7-bit ASCII range, especially latin, cyrillic and greek, but not all characters tagged as "lowercase" in the Unicode specification are converted.

## Examples

<details open>
<summary>Example 1</summary>

```lsl
string msg = "I like candy!";
string p = llToUpper(msg);
llOwnerSay(p);//Will say "I LIKE CANDY!"
```

</details>

## Known issues

- [SVC-3760](https://jira.secondlife.com/browse/SVC-3760): Unicode behavior of [llToUpper](/functions/llToUpper/) and [llToLower](/functions/llToLower/) is inconsistent and broken

## See also

### Functions

- [llToLower](/functions/llToLower/)

---

*Source: [LlToUpper](https://wiki.secondlife.com/wiki/LlToUpper) on the Second Life Wiki. Content from the Second Life Wiki article LlToUpper (revision 1215067, 2023-10-16), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llToUpper/
