nus-cs2113-AY2021S1 / forum

8 stars 0 forks source link

Can we assume the user is able to display Unicode characters properly? #113

Open SimJunYou opened 4 years ago

SimJunYou commented 4 years ago

There's the usual problem of the default tick and cross showing up as question marks, but my group wants to try adding more Unicode characters like emojis into the program.

Some members in my team have difficulty displaying the output (question marks instead of actual characters), while others have no issue.

Are we allowed to assume that the user is able to display Unicode characters properly? Given that the tick and cross were shown to us by the syllabus despite some not being able to display them, I think it's a fair assumption but we're checking just in case.

okkhoy commented 4 years ago

Probably best not to assume that. It may work with certain settings on certain machines, but not guaranteed to work for everyone. Given that the person who tests your application has only about an hour, (s)he cannot afford to spend 10 min getting the settings right. WRT the cross and ticks, after seeing the struggle for 2 semesters now, we have decided to remove it for future offerings.

limgl1998 commented 4 years ago

Hi prof, I have a function that requries the printing of unicode characters and could not find an alternative in a short period of time. Would it be considered too much to ask if I required the user to enter chcp 65001 in the UG before actually starting the app or should I manually call the command using in the java code?

okkhoy commented 4 years ago

You could add that in the UG, but there is no guarantee that your peer testing the app would do it (simply because the available time is limited and it is a detail that can be missed) 🙁 If you can handle it within the code, it is best if you do it.

limgl1998 commented 4 years ago

I see. Thanks for the clarification!