Persian words changed to ??? in Orchard - asp.net-mvc

I've build an orchard site on my local machine. this site is in three language and on my local computer every this is good.
But after I published my site on remote server; for example when I want to add a new page in Persian language, after saving word to database every words changed to ????.
site address is http://modernsaraylar.com/ and I don't know how to fix it.
by the way, I have put all of the tables collation to utf8-persian-ci but it doesn't work :(
TNX in advance.

In SQL then you will have to change the column type should be changed to nvarchar instead of varchar

add "CharSet=utf8" at the end of connection string and it solved the problem. It you use MySQL you will have this problem.

Related

Grails, findBy don't work with national characters like 'å','ä','ö'

For instance, Supplier.findByName('Röde Orm') returns null even though this name exists in the field "SearchName" in table "Supplier".
Is this correct or do I have to do some reconfiguration of grails?
Well, now the problem disappeared. I don't know why I got the problem in the beginning but I know that the URLEncoder.encode was completely wrong to use here but I never thought about that and after doing some corrections in the database, still using varchar, things started to work but not until I removed the URLEncoder call.

Listings every entries for a Model in Rails

I'm working on a project for Ruby on Rails. We have a Model nammed "Commerce" (it's in french, kind of 'shop') with a table in postgresql which contains at least 1500 entries. We generated it's CRUD views with 'rails generate scaffold_controller'.
The problem is that while on the commerces#index, it can't shows all entries from the database. It shows near 50 of them and stop. Sometimes it show 55 of them but never more...
Do you have any ideas ?
Thanks a lot for your help and sorry for my english x)
Solved!
Actually, it was the reverse proxy NGINX that didn't have the rights to write temporary files...
Thank you anyway for your answer !

Error 2002 : The EntityContainer 'X' for the storage model specified as part of this MSL does not exist in MetadataWorkspace

I'm trying to integrate my Oracle Database into my ASP.NET app, but I keep getting this error :
Error 2002: The EntityContainer 'OracleDBTargetContainer' for the
storage model specified as part of this MSL does not exist in
MetadataWorkspace.
I've tried everything I could think of but still can't figure out what's wrong.
What can I do to diagnose the root cause of this?
This is still new to me so I might miss something very obvious.
I'm assuming it my not like my database as the Diagram displayed when I integrated another DB. I've checked the foreign keys, primary keys, ... but to no good.
Using VS2013 with ODP.NET 12c Release 3.
EDIT : My EntityContainerMapping is empty, is that normal?
<EntityContainerMapping CdmEntityContainer="PMModelContainer" StorageEntityContainer="PMModelTargetContainer"></EntityContainerMapping>
I found what was wrong.
One of my foreign key didn't match the primary key (Number 20 instead of Number 10)
I saw on stack overflow that it could be a problem and checked my tables but I missed that one obviously.
How did I realize it ? Well because rather than creating the EF Designer, I chose the Code First from database option, and, oh, what do you know, the error message now tells you EXACTLY what the problem is ! (Table names and columns).

AnyDac aka FireDac cannot generate update query

I was using UniDac for a long time now and decided to move on to FireDac as it has good Asynch methods after moving on i saw that none of my data editing works anymore it gives me an error:
[FireDAC][Phys]-330. Cannot generate update query. Update table undefined.
What I am trying to do here is i have a TFDStoredProc component who gets all the data from the database and lets me edit it, with unidac I could easily edit the data without any problem like this:
StoredProc.Edit;
StoredProcCreatedID.Value := SomeValue;
StoredProc.Post;
and it worked, but with AnyDac it doesn't, I tried specifying manually the UpdateTable which leads to another problem:
[FireDAC][Phys][ODBC][Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'CreatedID'.
I am using Microsoft SQL Server 2012 FireDac 8.0 and stored procedures for getting back results any ideas?
P.S.
The query looks like this
SELECT
CreatedBy as CreatedID,
usr.UserName as CreatedBy
FROM
Sales
LEFT JOIN
Users usr ON usr.ID = Sales.CreatedBy
it looks like the FireDac update builder doesn't recognize the aliases on the fields, any help would be appreciated.
Well i figured out what was the issue, it seems that if you specify a alias in the query for a field the Origin property will be set to the alias and not the real field i downloaded CNPack a must have for a delphi developer also its free, ran the component selector and changed all my aliased fields to their real fields and it works, but this is still a big issue in FireDac component because it doesnt recognize the aliased fields, lets hope it will be fixed in the future as to specify for every query what table it should update and what fields that just allot of work if you are migrating from a big project in my case 220+ stored procedures.

Can I change the the Datatype of Column Body of table BlogPost in Nopcommerce Database?

I want to post my blog in my store which is of Nopcommerce and the size of my blog contents is greater than 4000 characters.
Now I want to change that limit but it does not allow me change the datatype or the size of current datatype which is string.
I have tried to change it from BlogPostMap file, but it does not work for me.
Can anyone suggest me how to solve this problem?
Thanks in anticipation.
There is no limit to blog post sizes, nor in the database nor in the code. The database definition for body is NVARCHAR(MAX) and you don't need to modify the BlogPostMap file.
The problem is somewhere else. Are you using the nopCommerce interface or creating blogs using a custom process?
Maybe a problem with Management Studio? Check this:
SQL Server Text Datatype Maxlength = 65,535?

Resources