Java printwriter issues

Hi guys, my problem is literally in the title... Everytime I give my writer a String input, those weird questionmarks are added in front of the String which unables me to check for the given user in the database... (screenshot) The code I am using: https://pastebin.com/hMaX63zy
Pastebin
a - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
25 Replies
JavaBot
JavaBot8mo ago
This post has been reserved for your question.
Hey @netty.bootstrap! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
netty
nettyOP8mo ago
No description
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
netty
nettyOP8mo ago
ohh I didnt even know thats possible
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
netty
nettyOP8mo ago
okkk thanks
JavaBot
JavaBot8mo ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
netty
nettyOP8mo ago
to get the input for the users account and grab it from the db
netty
nettyOP8mo ago
And I did some debugging already, the error is literally here
No description
netty
nettyOP8mo ago
or in this method you sent above
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
netty
nettyOP8mo ago
They appear for both strings
netty
nettyOP8mo ago
for this one also
No description
netty
nettyOP8mo ago
if you put a println statement after the last line on this ss, the string is already messed up so ig its a writer issue
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
netty
nettyOP8mo ago
ye whats wrong about socket streams? The code I sent is listening on a server you connect to via telnet I just did some debugging on the backend to check why the login did not work
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
netty
nettyOP8mo ago
do you mean for example the username? or what exactly do you mean in the case of this, I just took the username string and passed it over to the parameter and constructor of my db handler to then print it out and check where the issue is coming from but like I said, it seems that the string itself is already messed up before anything is passed at all.
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
netty
nettyOP8mo ago
what socket the serverSocket? if yes, its already messed up before it enters yes
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
netty
nettyOP8mo ago
hm but thats not what I wanna do I think
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
netty
nettyOP8mo ago
okok I see ill try once on pc What else do you need to see for example what class for example
JavaBot
JavaBot8mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?