# Smart quotes interfere with troop search

**URL:** <https://community.gemsofwar.com/t/smart-quotes-interfere-with-troop-search/80942>\
**Category:** Bug Reports\
**Created:** [August 17, 2023, 12:04am UTC](https://community.gemsofwar.com/t/smart-quotes-interfere-with-troop-search/80942 "2023-08-17T00:04:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jruderman](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/jruderman/32/90491_2.png) [@jruderman](https://community.gemsofwar.com/u/jruderman)\
**Post date:** [August 17, 2023, 12:04am UTC](https://community.gemsofwar.com/t/smart-quotes-interfere-with-troop-search/80942/1 "2023-08-17T00:04:29Z")

</div>

**Device:**  
iPhone 12 mini

**Screenshot:**

 ![IMG_2814](https://us1.discourse-cdn.com/flex019/uploads/gemsofwar/original/3X/5/7/57b41a272fd35da193858af15603c2e43215440f.jpeg)

**Steps:**  
Type the name Ba’el into the troop search box (using the iOS on-screen keyboard)

**Expected:**  
Should show the troop from Darkstone named Ba’el

**Result:**  
Zero troops listed

**Notes:**  
This happens because the iOS keyboard emits ‘RIGHT SINGLE QUOTATION MARK’ (U+2019) in this context, while the troop name contains ‘APOSTROPHE’ (U+0027), and the search algorithm doesn’t consider these to be equivalent.

**Suggested fixes:**  
Probably the search input should be normalized, or the search should be done in a way that’s insensitive to typographical variants. Alternatively, [OS-specific APIs can be used to disable smart quotes for the troop search field](https://stackoverflow.com/questions/44932863/ios-11-disable-smart-quotes), altering the behavior of the keyboard.
