M
M
Mattspr2015-08-19 14:04:47
MySQL
Mattspr, 2015-08-19 14:04:47

Doodles instead of Russian letters when adding rows to mysql via java, what should I do?

When adding Russian strings through the workbench, everything is fine, but if you add via java, then instead of Russian letters, scribbles, previously added Russian strings through the workbench are displayed normally. Everywhere is utf-8, where to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SagePtr, 2015-08-19
@SagePtr

SET NAMES utf8 execute after connecting to db

A
Andrey Goncharov, 2015-08-28
@andre_goncharov

This was enough for me:
0d404b701e32452b878deb7e644608ee.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question