# Quote marks display as a box in the window

**URL:** <https://discourse.processing.org/t/quote-marks-display-as-a-box-in-the-window/22518>\
**Category:** Processing.py\
**Created:** [July 9, 2020, 7:17pm UTC](https://discourse.processing.org/t/quote-marks-display-as-a-box-in-the-window/22518 "2020-07-09T19:17:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PawnMongo](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@PawnMongo](https://discourse.processing.org/u/PawnMongo)\
**Post date:** [July 9, 2020, 7:17pm UTC](https://discourse.processing.org/t/quote-marks-display-as-a-box-in-the-window/22518/1 "2020-07-09T19:17:53Z")

</div>

I read a text file with createReader() and then displayed the contents in a window with text(). The text displayed properly except that single and double quote marks displayed as boxes. Is there is simple way to fix this?

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [July 9, 2020, 9:01pm UTC](https://discourse.processing.org/t/quote-marks-display-as-a-box-in-the-window/22518/2 "2020-07-09T21:01:17Z")

</div>

Are you using some special font? Does the text file use UTF-8 encoding?

---

<div class="post-metadata">

**Author:** ![PawnMongo](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@PawnMongo](https://discourse.processing.org/u/PawnMongo)\
**Post date:** [July 9, 2020, 10:32pm UTC](https://discourse.processing.org/t/quote-marks-display-as-a-box-in-the-window/22518/3 "2020-07-09T22:32:13Z")

</div>

I created the text file with Microsoft Word and saved it as a plain text file with a txt extension. The font was Calibri (Word’s default on my computer). Here’s the code I used to read the file and display it in a window:

def setup():  
global line  
size(1200,800)  
reader=createReader(“SampleText3.txt”)  
line=reader.readLine()

def draw():  
global line  
background(255,255,255)  
fill(0,0,0)  
text(line,100,100)

When I ran the code, both single quotes and double quotes showed up as boxes in the window.

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [July 9, 2020, 10:45pm UTC](https://discourse.processing.org/t/quote-marks-display-as-a-box-in-the-window/22518/4 "2020-07-09T22:45:23Z")

</div>

Maybe Word is doing something weird with the encoding. Try copy-paste your text from the Word document into this online text editor:

[https://www.editpad.org/](https://www.editpad.org/)

Cllick the “Download & Save” button when you’re done. Try that version of the file with your sketch.

---

<div class="post-metadata">

**Author:** ![PawnMongo](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@PawnMongo](https://discourse.processing.org/u/PawnMongo)\
**Post date:** [July 10, 2020, 11:56am UTC](https://discourse.processing.org/t/quote-marks-display-as-a-box-in-the-window/22518/5 "2020-07-10T11:56:52Z")

</div>

You were right. It was a Word problem. When I created and saved a textfile using Notepad, the quotes displayed properly. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [July 10, 2020, 12:12pm UTC](https://discourse.processing.org/t/quote-marks-display-as-a-box-in-the-window/22518/6 "2020-07-10T12:12:27Z")

</div>

Yeah, like my iPhone Word replaces normal " with “ which look more beautiful but have another ascii/utf code.
