Database Error - On Definition, Translation Tab

(Hashim) #1

May i know how to fix this error. Happening with fresh setup.

Query Error

ERROR: query failed: SELECT lc.cons_id, lc.constant_name, ld.def_id, ld.definition, ld.lang_id FROM lang_definitions AS ld RIGHT JOIN ( lang_constants AS lc, lang_languages AS ll ) ON ( lc.cons_id = ld.cons_id AND ll.lang_id = ld.lang_id ) WHERE lc.constant_name COLLATE utf8_general_ci LIKE ? AND ( ll.lang_id = 1 OR ll.lang_id=? ) ORDER BY lc.constant_name COLLATE utf8_general_ci

Error: COLLATION ‘utf8_general_ci’ is not valid for CHARACTER SET ‘latin1’

(Brady Miller) #2

hi @hashimea ,
Are you creating a database before the OpenEMR setup? If so, then need to ensure the database is set to use UTF8.

(Hashim) #3

Converting the database to UTF8 fixed this issue. Thank You