---
title: urlQueryAllowed
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nscharacterset/urlqueryallowed
---

# urlQueryAllowed

Returns the character set for characters allowed in a query URL component.

## Declaration

```swift
class var urlQueryAllowed: CharacterSet { get }
```

## Discussion

Discussion The query component of a URL is the component immediately following a question mark (?). For example, in the URL http://www.example.com/index.php?key1=value1#jumpLink, the query component is key1=value1.

## See Also

### Getting Character Sets for URL Encoding

- [urlFragmentAllowed](foundation/nscharacterset/urlfragmentallowed.md)
- [urlHostAllowed](foundation/nscharacterset/urlhostallowed.md)
- [urlPasswordAllowed](foundation/nscharacterset/urlpasswordallowed.md)
- [urlPathAllowed](foundation/nscharacterset/urlpathallowed.md)
- [urlUserAllowed](foundation/nscharacterset/urluserallowed.md)
