# Routing with utf-8 characters

**URL:** <https://discourse.laminas.dev/t/routing-with-utf-8-characters/243>\
**Category:** Components & MVC\
**Created:** [August 9, 2017, 6:07am UTC](https://discourse.laminas.dev/t/routing-with-utf-8-characters/243 "2017-08-09T06:07:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_S](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Mohammad\_S](https://discourse.laminas.dev/u/Mohammad_S)\
**Post date:** [August 9, 2017, 6:07am UTC](https://discourse.laminas.dev/t/routing-with-utf-8-characters/243/1 "2017-08-09T06:07:00Z")

</div>

I want to start routing with persian characters like “localhost/zend/public/محصولات”. how can I do that?  
I found a solotion in [[https://stackoverflow.com/questions/32824060/zend-framework-2-routing-with-utf-8-regex-pattern](https://stackoverflow.com/questions/32824060/zend-framework-2-routing-with-utf-8-regex-pattern)] but my question is in my controller class. what action name must use to handle the route ‘\محصولات’?  
Apologize for bad English.  
([https://stackoverflow.com/questions/32824060/zend-framework-2-routing-with-utf-8-regex-pattern](https://stackoverflow.com/questions/32824060/zend-framework-2-routing-with-utf-8-regex-pattern))

---

<div class="post-metadata">

**Author:** ![cpm](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/cpm/32/107_2.png) [@cpm](https://discourse.laminas.dev/u/cpm)\
**Post date:** [August 9, 2017, 6:41am UTC](https://discourse.laminas.dev/t/routing-with-utf-8-characters/243/2 "2017-08-09T06:41:47Z")

</div>

I had that issue recently and found that unicode segment router is not needed like stackoverflow posts suggests. Unicode characters are encoded by browser with %, and decoded by zend router (segment) using `rawurldecode`. Use segment router with “[\w%]+” constraint, that is enough.
