Problem with some characters

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/15/2006 3:40:31 AM
Gravatar
Total Posts 11

Re: Problem with some characters

Hi,

I noticed this situation in mojoportal.com site: in My Profile page, I can't write some Croatian letters in Full Name text box. In fact, when I write first character of my lastname ('Curak'), after Update, I have only 'Curak'.

Is it bug or...?

Thanks

Update: when I posted this text, character 'C' became 'C'. ???

I will see what is Unicode code for my character, to help you to understand the problem.

Update: Latin Extended A - Unicode code: 0106

 

5/15/2006 2:17:49 PM
Gravatar
Total Posts 18439

Re: Problem with some characters

Hi Ivan,

I'm not sure what is causing this. In some previous versions we were html encoding the data on the way into the db but currently the data goes in raw so it should accept whatever characters you enter.

Joe
6/5/2006 9:58:21 AM
Gravatar
Total Posts 7

Re: Problem with some characters

Have same problem with czech chars.
Some solutions are writeln there (http://www.kentico.com/Forums/ShowPost.aspx?PostID=302)
But i was unable to solve it.

(i am using mojoportal for mono version)
6/5/2006 10:14:32 AM
Gravatar
Total Posts 18439

Re: Problem with some characters

Hi Tomas,

You can set that in Admin > SiteSettings
Default Page Encoding

Maybe that is the problem Ivan noticed on this site. I just looked and I have no character encoding specified at all, I have <meta http-equiv="Content-Type" content="application/xhtml+xml" />

Ivan, I will add charset=UTF-8 to this site. Can you see if that fixes the character problem for you?

Thanks,

Joe
6/5/2006 10:30:46 AM
Gravatar
Total Posts 11

Re: Problem with some characters

Unfortunately not. But it is not so important.

Thanks

6/5/2006 10:56:10 AM
Gravatar
Total Posts 18439

Re: Problem with some characters

I think the problem on this site might be related to the fact that my MySQL db has DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci

I don't know why or how it got this way, it wasn't intentional but could be a factor I would think.

I may try to fix it by creating a backup and and do some find and replace and then restore on a new clean db with a different character set and collation Tomas, you didn't mention what db you are using but it might be worth checking the character set used.

Hope it helps,

Joe
6/5/2006 11:19:30 AM
Gravatar
Total Posts 7

Re: Problem with some characters

I added <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> to page settings before, and it hasnt any efect.
BTW i am using Postgre (UNICODE), connection string contains charSet=utf-8

But dont want to bother you, there are maybe other things to do, that are important in the code.

I tried to directly modify the data in SQL (czech chars), but the html viewer shows double ? instead of one char (hopefuly a utf/unicode 2 bytes, but still "??")

I will try to download src and debug it (if i will have enough time in work)
6/5/2006 11:26:29 AM
Gravatar
Total Posts 18439

Re: Problem with some characters

Tomas,

You may already know this but there is also a setting in Web.config for Culture that sets the culture on the executing thread, do you have it set to cs-CZ?

Hope it helps,

Joe
6/5/2006 11:27:40 AM
Gravatar
Total Posts 7

Re: Problem with some characters

Yes, this is set too, the utf-8 in Web.config too
Hmm, little try on this site (i mean, that this is .NET2, so something different): ešcržýáíéu (some chars are unpointed, but readable - much better)
Hmm, so working (but when i tested it in demo - mono, it wasnt ok). I will try to study it, but right now it is midnight, so good night.
6/5/2006 3:57:42 PM
Gravatar
Total Posts 148

Re: Problem with some characters

Has anyone tried disabling NeatHtml in the Web.config just to confirm that isn't the problem?

--Dean
6/6/2006 10:46:39 PM
Gravatar
Total Posts 7

Re: Problem with some characters

Problem solved, BUT only under Windows .NET (beee). - i downloaded latest .NET 1.1 mojoportal from CVS. Upgraded Npgsql to latest 1.0RC1 and into connection string putted Encoding=utf-8
But, i was unable to run latest Npgsql.dll under mono 1.1 (i got some datetime parsing problem on page load) - will study on next free time.
You must sign in to post in the forums. This thread is closed to new posts.