Chen Kinnrot
Chen Kinnrot

Reputation: 21015

fluent nhibernate encoding settings

how can i set the encoding when i'm configure nhibernate with fluent configuration on mysql

my problem is that i'm saving hebrew text on db and all i see in my app is ????

Upvotes: 2

Views: 1148

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038930

I think this is not related to Fluent NHibernate. When you create your database you indicate the encoding:

CREATE DATABASE mydb DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;

Also verify that you append ;charSet=utf8 to your connection string.

Upvotes: 4

Related Questions