MySQL Forums
Forum List  »  Connector/ODBC

Re: odbc can not get the whole utf8 string
Posted by: Peter Brawley
Date: February 16, 2022 10:39AM

> How i can get the whole utf8 string with ODBC?

The column needs varchar(30). Better utf8mb4 and varchar(40).

select length(f2),char_length(f2) from test_tab;
+------------+-----------------+
| length(f2) | char_length(f2) |
+------------+-----------------+
|         30 |              10 |
+------------+-----------------+

Options: ReplyQuote


Subject
Written By
Posted
Re: odbc can not get the whole utf8 string
February 16, 2022 10:39AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.