# UnicodeEncodeError: 'charmap' codec can't encode characters

**URL:** <https://forum.knime.com/t/unicodeencodeerror-charmap-codec-cant-encode-characters/39199>\
**Category:** KNIME Analytics Platform\
**Tags:** python\
**Created:** [January 29, 2022, 9:37am UTC](https://forum.knime.com/t/unicodeencodeerror-charmap-codec-cant-encode-characters/39199 "2022-01-29T09:37:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [January 29, 2022, 6:33pm UTC](https://forum.knime.com/t/unicodeencodeerror-charmap-codec-cant-encode-characters/39199/2 "2022-01-29T18:33:51Z")

</div>

@JayR without having checked this out I would see these ways forward

- make sure the file in the jupyter notebook really is a pandas dataframe without any funny names or data types (first)
- experiment with the formats for communicating between python and knime (In the preferences)
- store the data from the jupyter notebook as csv or parquet file and load it back (you will have to deal with all the path things). Not very elegant but it might just work

I was planning on expanding this example to show data communication between knime and jupyter but have not done so yet.

> **[Use functions and Python code from an external .PY file or a Juypter notebook...](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_python_import_module~BQEN92dR6W0cUM8R)**
>
> Use functions and Python code from an external .PY file or a Juypter notebook in KNIME's Python Source node This workflow demonstrates how modules in (external…

---

_[View the full topic](https://forum.knime.com/t/unicodeencodeerror-charmap-codec-cant-encode-characters/39199)._
