Skip to content

Commit dbe510b

Browse files
authored
[Rules] Add section on non-ASCII header values (cloudflare#17605)
1 parent 0b2f46e commit dbe510b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/docs/rules/transform/managed-transforms/reference.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ Adds HTTP headers with location information for the visitor's IP address to the
7676
Turning on [IP geolocation](/network/ip-geolocation/) will send a `cf-ipcountry` HTTP header to your origin server even when **Add visitor location headers** is turned off.
7777
:::
7878

79+
#### Encoding of non-ASCII header values
80+
81+
Cloudflare always converts non-ASCII characters to UTF-8 (using hexadecimal character representation) in HTTP request and response header values. This applies to location headers added by the **Add visitor location headers** managed transform.
82+
83+
For example, the header value `São Paulo` would be encoded as `S\u00c3\u00a3o Paulo`.
84+
7985
### Add "True-Client-IP" header
8086

8187
:::note

0 commit comments

Comments
 (0)