---
title: "SW10003: Invalid Unicode string"
description: "A string used to generate CSS or resolve a module contains a lone Unicode surrogate."
image: "https://stillwind.dev/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://stillwind.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# SW10003: Invalid Unicode string

This error occurs when a static string contains an unpaired UTF-16 surrogate.
Stillwind requires well-formed Unicode in strings that it compiles, including
utility strings, declaration labels, and module specifiers.

## Reported

```tsx
export const props = style("content-['\uD800']");
```

> SW10003: string contains invalid Unicode

## Fixed

```tsx
export const props = style("content-['\u{1F600}']");
```

## How to fix

Complete the surrogate pair, use a valid code point with `\u{...}`, or remove the
invalid escape. Strings that Stillwind leaves for runtime evaluation can still
contain lone surrogates.

Source: https://stillwind.dev/docs/errors/SW10003/index.mdx
