# Unable to rename field name with degree (°)symbol

**URL:** <https://discuss.elastic.co/t/unable-to-rename-field-name-with-degree-symbol/58373>\
**Category:** Logstash\
**Created:** [August 18, 2016, 4:06pm UTC](https://discuss.elastic.co/t/unable-to-rename-field-name-with-degree-symbol/58373 "2016-08-18T16:06:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saisn](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@saisn](https://discuss.elastic.co/u/saisn)\
**Post date:** [August 18, 2016, 4:06pm UTC](https://discuss.elastic.co/t/unable-to-rename-field-name-with-degree-symbol/58373/1 "2016-08-18T16:06:40Z")

</div>

I have below config in brief, where i am trying to rename the field name to have a special character (degree symbol) but using it throws an error.

" **'The following config files contains non-ascii characters but are not UTF-8 encoded**".

config file:

input{  
// from sql server

}  
filter{  
mutate{  
rename=\>{"temperature" =\> "Temperature(°C)}  
}  
output{  
elasticsearch{  
------------------  
------------------  
}  
}  
Can someone help me!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 18, 2016, 5:21pm UTC](https://discuss.elastic.co/t/unable-to-rename-field-name-with-degree-symbol/58373/2 "2016-08-18T17:21:56Z")

</div>

Is your configuration file UTF-8 encoded? The UTF-8 representation of the ° code point is C2 B0.

---

<div class="post-metadata">

**Author:** ![saisn](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@saisn](https://discuss.elastic.co/u/saisn)\
**Post date:** [August 18, 2016, 6:36pm UTC](https://discuss.elastic.co/t/unable-to-rename-field-name-with-degree-symbol/58373/3 "2016-08-18T18:36:59Z")

</div>

It wasn't before. After saving the conf file as UTF-8 encoding it worked.  
Thanks for your reply.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:42am UTC](https://discuss.elastic.co/t/unable-to-rename-field-name-with-degree-symbol/58373/4 "2017-07-06T04:42:42Z")

</div>

Closed on July 6, 2017, 4:42am UTC


