# Non-ascii characters written to log cause aws cloudwatch get failure

**URL:** <https://community.postman.com/t/non-ascii-characters-written-to-log-cause-aws-cloudwatch-get-failure/1493>\
**Category:** Help Hub\
**Tags:** console\
**Created:** [April 26, 2018, 2:14am UTC](https://community.postman.com/t/non-ascii-characters-written-to-log-cause-aws-cloudwatch-get-failure/1493 "2018-04-26T02:14:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leotohill](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@leotohill](https://community.postman.com/u/leotohill)\
**Post date:** [April 26, 2018, 2:14am UTC](https://community.postman.com/t/non-ascii-characters-written-to-log-cause-aws-cloudwatch-get-failure/1493/1 "2018-04-26T02:14:45Z")

</div>

I don’t know if this is something that PostMan should address, or AWS, but I’ll start here.

I’ve included Postman tests in a build process in the context of a AWS CodeBuild project. The build runs on a Linux instance. AWS captures to the console output to a CloudWatch log. When I attempt to retrieve the cloudwatch log using

aws logs get-log-events

That (python) application blows up, reporting an invalid unicode character in the content.

Since there are so many variables and steps in the process, this could take a while to nail down, but I thought I’d start here: are you aware of any problems resulting from PostMan writing invalid characters to the log?

For example, output produced by  
`console.log('Hello from the pre-request script')`  
writes to the log with a non-ascii preamble. Postman is trying to draw boxing characters to connect lines together. The rendering depends on the renderer: in a windows powershell console it looks like this:  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/7/8/78baa828d87a89d3ef223744e524d59e665465e5.png)

and when captured to a file and opened in UltraEdit, it looks like  
(Oh, darn, new users are only allowed one image per post. )

I suppose that if I posted this as a feature request, it would be “provide an option to disable ascii art on console output”.

Comments?

---

<div class="post-metadata">

**Author:** ![kunagpal](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kunagpal/32/9_2.png) [@kunagpal](https://community.postman.com/u/kunagpal)\
**Post date:** [July 5, 2018, 8:51pm UTC](https://community.postman.com/t/non-ascii-characters-written-to-log-cause-aws-cloudwatch-get-failure/1493/2 "2018-07-05T20:51:26Z")

</div>

Hey @leotohill, this can be done with the `--disable-unicode` option. You might also want to use `no-color`, if colouring symbols are interfering with the result. All these options are documented here: [https://github.com/postmanlabs/newman#command-line-options](https://github.com/postmanlabs/newman#command-line-options) 😄
