# Buffer string characters come out weird

**URL:** <https://discourse.nodered.org/t/buffer-string-characters-come-out-weird/47454>\
**Category:** General\
**Created:** [22 June 2021 03:32 UTC](https://discourse.nodered.org/t/buffer-string-characters-come-out-weird/47454 "2021-06-22T03:32:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Athurian](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Athurian](https://discourse.nodered.org/u/Athurian)\
**Post date:** [22 June 2021 03:32 UTC](https://discourse.nodered.org/t/buffer-string-characters-come-out-weird/47454/1 "2021-06-22T03:32:55Z")

</div>

Buffer string characters come out weird.  
The code looks like this and it comes out weird in the debug window.  
The numbers come out fine... If I press the buffer as a string, it comes out as follows.  
Any solution?  
For reference, I am setting the Raspberry Pi in Korean, and I set the encoding to utf-8.

![1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/1/2145d830c1e28ca3e98fd1013cdf4893b6ac76ed.jpeg)  
 ![2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b2ad3f42ad0016ab179bfe3808743587e956b409.jpeg)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 June 2021 08:26 UTC](https://discourse.nodered.org/t/buffer-string-characters-come-out-weird/47454/2 "2021-06-22T08:26:00Z")

</div>

What do you expect the four binary values that represent the number to appear as if you tell it to display it as a string?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 August 2021 08:26 UTC](https://discourse.nodered.org/t/buffer-string-characters-come-out-weird/47454/3 "2021-08-21T08:26:52Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
