Skip to main content
grammar
Source Link
b4hand
  • 9.8k
  • 4
  • 46
  • 49

i'mI'm writing a pythonPython script to read the unicode charUnicode characters from a file and insert them into DBa database. I can only insert 30 bytes of the unicode characters i can insert into DB each string. How todo I calculate the size of the unicode charstring in bytes before iI insert into DB.the database?

i'm writing a python script to read the unicode char from file and insert into DB. 30 bytes of the unicode characters i can insert into DB . How to calculate the size of the unicode char before i insert into DB.?

I'm writing a Python script to read Unicode characters from a file and insert them into a database. I can only insert 30 bytes of each string. How do I calculate the size of the string in bytes before I insert into the database?

Source Link
MSD
  • 1.4k
  • 12
  • 26

Calculate bytes of the unicode character in python

i'm writing a python script to read the unicode char from file and insert into DB. 30 bytes of the unicode characters i can insert into DB . How to calculate the size of the unicode char before i insert into DB.?