# \[Bug Report\] Zone Name isn't properly converted

**URL:** <https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642>\
**Category:** FF Logs\
**Created:** [November 17, 2017, 12:09am UTC](https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642 "2017-11-17T00:09:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngld](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@ngld](https://forums.combatlogforums.com/u/ngld)\
**Post date:** [November 17, 2017, 12:09am UTC](https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642/1 "2017-11-17T00:09:42Z")

</div>

I tried to upload a log for the Tam-Tara Deepcroft. The upload worked but it doesn’t load for me (it’s stuck at “Loading data…”).

I got curious and tried to find out what the error was. Chrome complains about the returned JSON data from the server: “Unexpected token in JSON at position 135”

Here’s the beginning of the returned JSON:  
{ “fights”:[{ “id”:1, “start\_time”:60537687, “end\_time”:60728697, “boss”:0, “name”:“Ak-Inik Varlet”, “zoneID”:164, “zoneName”: “The TamTara Deepcroft” }

Seems like something went wrong with the dungeon name.

---

<div class="post-metadata">

**Author:** ![Kihra](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/kihra/32/1116_2.png) [@Kihra](https://forums.combatlogforums.com/u/Kihra)\
**Post date:** [November 17, 2017, 2:56am UTC](https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642/2 "2017-11-17T02:56:30Z")

</div>

I’m confused. That looks fine to me.

---

<div class="post-metadata">

**Author:** ![ngld](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@ngld](https://forums.combatlogforums.com/u/ngld)\
**Post date:** [November 17, 2017, 3:32am UTC](https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642/3 "2017-11-17T03:32:30Z")

</div>

Here’s the list of char codes: [84, 104, 101, 32, 84, 97, 109, 3, 84, 97, 114, 97, 32, 68, 101, 101, 112, 99, 114, 111, 102, 116]  
The char code of the dash is 3 which is weird because that code is special in ASCII (end of text marker).  
The cause of that weird character is FFXIV or ACT since it’s written that way in the log as well.

---

<div class="post-metadata">

**Author:** ![Kihra](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/kihra/32/1116_2.png) [@Kihra](https://forums.combatlogforums.com/u/Kihra)\
**Post date:** [November 17, 2017, 7:46am UTC](https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642/4 "2017-11-17T07:46:15Z")

</div>

Do you have a link to the report so I can test a fix?

---

<div class="post-metadata">

**Author:** ![ngld](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@ngld](https://forums.combatlogforums.com/u/ngld)\
**Post date:** [November 17, 2017, 11:49am UTC](https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642/5 "2017-11-17T11:49:03Z")

</div>

[https://www.fflogs.com/reports/VTYfJq76bP4wdMcm](https://www.fflogs.com/reports/VTYfJq76bP4wdMcm)

---

<div class="post-metadata">

**Author:** ![Beggall](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@Beggall](https://forums.combatlogforums.com/u/Beggall)\
**Post date:** [November 18, 2017, 11:12pm UTC](https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642/6 "2017-11-18T23:12:39Z")

</div>

> [@ngld](#):
>
> [FF Logs - Combat Analysis for FF](https://www.fflogs.com/reports/VTYfJq76bP4wdMcm)

thank you very much. does someone know when it’s going to work again?

---

<div class="post-metadata">

**Author:** ![ngld](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@ngld](https://forums.combatlogforums.com/u/ngld)\
**Post date:** [November 22, 2017, 6:28am UTC](https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642/7 "2017-11-22T06:28:10Z")

</div>

I have two suggestions for this:

- Display an actual error message whenever updateFightsAndParticipantsFailed is called so people aren’t wondering why it’s stuck on the loading screen.
- Assuming the server uses PHP, something like preg\_replace(’/[^\x20-\x7E]/’, ‘’, $data) should solve the problem by removing all characters outside the range of 32 and 126 which should contain all regular ASCII characters.

This thread seems to be related to the same problem and contains more logs with the same problem: [Recent logs stuck on "Loading Data..." forever](http://forums.combatlogforums.com/t/recent-logs-stuck-on-loading-data-forever/4473)

---

<div class="post-metadata">

**Author:** ![Kihra](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/kihra/32/1116_2.png) [@Kihra](https://forums.combatlogforums.com/u/Kihra)\
**Post date:** [November 25, 2017, 11:03pm UTC](https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642/8 "2017-11-25T23:03:33Z")

</div>

This is being fixed at the ACT level. I may still put in a workaround for the broken logs, but watch for a new FFXIV plug-in release for ACT that fixes the zone names to not include this character.

---

<div class="post-metadata">

**Author:** ![ngld](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@ngld](https://forums.combatlogforums.com/u/ngld)\
**Post date:** [November 26, 2017, 12:02am UTC](https://forums.combatlogforums.com/t/bug-report-zone-name-isnt-properly-converted/4642/9 "2017-11-26T00:02:50Z")

</div>

Thanks a lot!
