CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 CCS4, Panels, Ajax, Characterset troubles

Print topic Send  topic

Author Message
SKoops

Posts: 2
Posted: 03/26/2008, 7:42 AM

Hello

I am using for my Projects:

Characterset: windows-1250
Charset-Coding: Western European (Windows-1250)
Html-Coding: Western European (Windows-1250)
Website environment: German

Using "classic" CCS storing stuff like "äöü" in my database works fine.

If I use panels and ajax tabbed tabs on my page, things go wrong. It stores "öA¶" instead of "äö" in the tables.

In the beta4 area someone already posted, that UTF-8 is wrongly used instead of the project setting while generating the scipt code.

Any ideas to work around that topic? Is it a bug or a feature :-<?

Sam
View profile  Send private message
jnunez

Posts: 10
Posted: 03/26/2008, 10:19 AM

Hello,
This a known bug reported one month ago. Meanwhile they solve it, I found a solution for VB .Net.
I supose it should be similar in other languaje.

The class is located in Common/App_code/Components/Utility.vb
Name of Class: Public Class ResponseFilter
There change the functions as follow:

Public Overrides Sub Close()
Dim data() As Byte

Dim temp As String = html.ToString()
Dim Result As Boolean = False
RaiseEvent OnFilterClose(temp, responseStream, Result)
If Not Result Then Return
'data = System.Text.UTF8Encoding.UTF8.GetBytes(temp)
data = System.Text.Encoding.Default.GetBytes(temp)
responseStream.Write(data, 0, data.Length)
responseStream.Close()
End Sub

and the function...


Public Overrides Sub Write(buffer() As Byte, offset As Integer, count As Integer) '
'html.Append(System.Text.UTF8Encoding.UTF8.GetString(buffer, offset, count))
html.Append(System.Text.Encoding.Default.GetString(buffer, offset, count))

End Sub

Hope it helps
Javier
_________________
Javier
View profile  Send private message
SKoops

Posts: 2
Posted: 03/27/2008, 2:19 AM

Quote jnunez:
Hello,
This a known bug reported one month ago. Meanwhile they solve it, I found a solution for VB .Net.
I supose it should be similar in other languaje.

....


Hola Javier

I am using CCS 4.00.00.04, Language ASP. The problem seem NOT to be solved. Actually I created my project in CCS 4.00.00.03, converted it and republished all files ... did not help.

I can not find the responding part in ASP you have patched to get it running. I think, YesSoftware has to take a look and fix the cause of that.

Thanks

Sam
View profile  Send private message
wkempees


Posts: 1679
Posted: 03/27/2008, 4:47 AM

Sam,
Then submit support ticket.
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
jnunez

Posts: 10
Posted: 03/27/2008, 4:57 AM

Hello Sam

Sorry my "solution" did not help you. Maybe every languaje is very different from the others.
My ticket is opened on February 15 and they are working for solution. They told me the solution is quite complex

Hope they get it soon
Regards
Javier
_________________
Javier
View profile  Send private message
maxhugen

Posts: 272
Posted: 04/19/2008, 7:14 AM

<sigh> Is this just beginner's luck, or what? Seems I've tripped over a stack of CCS issues and I've only used CCS for about 4 weeks!

I too am having probs with characters like "äö" etc. I have utf-8 everywhere I can find to specify it, MySQL, CCS... I just don't know where the issue is, and I don't have the time or skill to figure it out. :-/

If/when you get any answers, pls do reply to this post.
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com
View profile  Send private message
aradi

Posts: 66
Posted: 04/21/2008, 4:46 AM

Hello Max,
Have you checked "use internationalization features" in project->settings->locales&Encodings? , provided that you chose utf-8 everywhere . I don'nt know why , but when i checked that it works for me ,when using update panel.

Best regards



View profile  Send private message
aradi

Posts: 66
Posted: 04/21/2008, 4:47 AM

Sorry double reply
View profile  Send private message
maxhugen

Posts: 272
Posted: 04/21/2008, 7:58 PM

Actually, I've avoided using the internationalization features, as I found it was a pain (in a test app) to have to provide a translation for everything, even though the site is only available in English.

I have, however, set everything I can find to utf-8:

CCS
- File Encoding
- Default HTML Encoding
- All pages
MySQL (incl collation=utf8_general_ci)
- Database
- All Tables
- All Fields

It seems to display the characters OK for a while, then I get junk again. Haven't figured out why yet.
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com
View profile  Send private message
aradi

Posts: 66
Posted: 04/22/2008, 5:20 AM

You only check the internationalization feature when you publish (F9) then uncheck during design, to avoid translations , and have the characters display correctly in mysql and pages.

This is UTF-8 settings i used:

CCS
-Site local=english then edit -> set output encoding=utf-8
Project->setting-Server/sccript->charset=UTF-8
- File Encoding
- Default HTML Encoding
- All pages
MySQL (incl collation=utf8_general_ci)
- Database
- All Tables
- All Fields
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.