marisol123
Posts: 4
|
| Posted: 03/03/2010, 12:25 PM |
|
Hi
I'm having a problem with accent and special characters in php code. When I write an á Code Charge change it by this à . I’m using Microsoft Visual SourceSafe for source control. If I write it right, save it and check it in, when I check it out and open it again, characters are changed.
I don’t know what I'm doing wrong.
My encoding setting is Unicode(UTF-8).
Thanks in advance
|
 |
 |
Kris
Posts: 8
|
| Posted: 03/15/2010, 7:21 AM |
|
We also have the same problem with Croatian accent characters!
They didn't display after we publish project, but in a software is everything o.k.!
Please help us!
This question is very important and urgent!
Anybody!!????
Thank you in advance!
_________________
Kris |
 |
 |
melvyn
Posts: 333
|
| Posted: 03/15/2010, 10:23 PM |
|
Set your encoding to your language or utf-8
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
 |
 |
Kris
Posts: 8
|
| Posted: 03/16/2010, 7:28 AM |
|
I tray with Croatian and UTF-8!
And still doesn't work! 
I check all Project settings several times! 
Does anybody use/d Croatian characters in a project here?
I need advice from "first hand" maybe (somebody from Croatia?)!?
Anyway, thanks Melvyn....
_________________
Kris |
 |
 |
mor
Posts: 119
|
| Posted: 03/16/2010, 7:46 AM |
|
Kris,
What property in Project settings is not saved correctly (á replaced by Ã)?
_________________
Mor ve Ötesi |
 |
 |
Kris
Posts: 8
|
| Posted: 03/16/2010, 9:39 AM |
|
Mor,
Problems are this appearance : ž = Ž, ć= ć, č=Ä ...... and all Croatian letters with accent! (We, in Croatia, have letters: Ž, ž, Č, č, Ć, ć, Š, š, Đ,đ)!
Thnx
BR,
_________________
Kris |
 |
 |
materix
Posts: 161
|
| Posted: 03/16/2010, 9:50 AM |
|
Yes I have also experienced this with danish letters.
But why do you need Croatian letters in your code? (other than for inline code comments)
|
 |
 |
mor
Posts: 119
|
| Posted: 03/16/2010, 9:55 AM |
|
Kris,
I can't to reproduce this problem with this your letters (Ž, ž, Č, č, Ć, ć, Š, š, Đ,đ) on my PC. I check Project settings dialog (General, Server/Scripts, Security and Publishing tabs). Maybe you can to assign support ticket to YES?
_________________
Mor ve Ötesi |
 |
 |
marisol123
Posts: 4
|
| Posted: 03/16/2010, 9:55 AM |
|
Quote Kris:
Mor,
Problems are this appearance : ž = Ž, ć= ć, č=Ä ...... and all Croatian letters with accent! (We, in Croatia, have letters: Ž, ž, Č, č, Ć, ć, Š, š, Đ,đ)!
Thnx
BR,
Hi Kris,
I have the same problem in spanish. I contacted the support but they haven´t help me with the problem. is strange because I didn't have it before and Code Charge changes the comments in php not only the code.
I want to ask you, to compare, what OS do you have? and what project configuration? are you using Microsoft Sourcesafe or a source control software?
thanks in advance
|
 |
 |
Kris
Posts: 8
|
| Posted: 03/16/2010, 10:00 AM |
|
Materix,
how did you solve problem with Danish letters?
Maybe also helps with Croatian letters!? 
I need Croatian letters for printing rapports from web application!
Thnx,
BR,
_________________
Kris |
 |
 |
materix
Posts: 161
|
| Posted: 03/16/2010, 10:49 AM |
|
I "solved" the problem by moving the danish content to the translation file in CCS (even when I only use one language in the project).
|
 |
 |
Kris
Posts: 8
|
| Posted: 03/17/2010, 3:01 AM |
|
Quote marisol123:
Hi Kris,
I have the same problem in spanish. I contacted the support but they haven´t help me with the problem. is strange because I didn't have it before and Code Charge changes the comments in php not only the code.
I want to ask you, to compare, what OS do you have? and what project configuration? are you using Microsoft Sourcesafe or a source control software?
thanks in advance
I have windows OS, and I'm using asp.net vb for my project.
I'm connected with CCS support guys and they assuming that is a problem with code page!
But, it is strange, that all displays characters (with or without accents) from database are perfekt!
Only I' have problem with characters published with page forms thru CCS application!
Marisol, how do you see yours text accents from database rows?
I'm optimistic about solving this problem!
Probably is something minor but we cant see it, for now!
_________________
Kris |
 |
 |
mor
Posts: 119
|
| Posted: 03/17/2010, 9:07 AM |
|
Guys!
if we want to use special national symbols in Code and don't want to use translations, we always can use codes of symbols with accents (Ž = Ž Č = Č ....).
It's not very convenient, but it works in HTML and code modes (if text shows as HTML).
_________________
Mor ve Ötesi |
 |
 |
Kris
Posts: 8
|
| Posted: 03/17/2010, 10:43 AM |
|
Mor,
good idea! 
Isn't "by the book" but sounds good! 
Thanks!
BR,
_________________
Kris |
 |
 |
marisol123
Posts: 4
|
| Posted: 03/17/2010, 12:26 PM |
|
My problem is in the php code page. characters from database are fine.
When I close a page and I open it again the accent characters are changed every time even the comment lines. Here I post an image (in this link)
http://img3.imageshack.us/img3/1971/pantallazok.jpg
Kris, do you have the same problem in code page or it is in html code.
Another thing, right now I'm doing mor's idea. But I still thinking there's a problem with my CCS.
|
 |
 |
Oper
Posts: 1195
|
| Posted: 03/18/2010, 7:41 AM |
|
Melvyn, estabas perdido!!!!
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
materix
Posts: 161
|
| Posted: 03/19/2010, 3:35 PM |
|
I have the same problem. I have started writing all my comments in english, to avoid this problem.
Quote marisol123:
My problem is in the php code page. characters from database are fine.
When I close a page and I open it again the accent characters are changed every time even the comment lines. Here I post an image (in this link)
http://img3.imageshack.us/img3/1971/pantallazok.jpg
Kris, do you have the same problem in code page or it is in html code.
Another thing, right now I'm doing mor's idea. But I still thinking there's a problem with my CCS.
|
 |
 |
Kris
Posts: 8
|
| Posted: 03/22/2010, 9:47 AM |
|
I'm now little bit in big question!!!
In HTML and Design mode I have all proper accents characters, but in Code mode (VB) they are strange hieroglyphs!!!!
Only what working is to manually change accents characters in Code mode!!
And I can pray God for staying that accent characters in Code mode at that condition! 
If anybody found solution for solving that problem with accent characters, please, share with us and we will multi- grateful for that!
_________________
Kris |
 |
 |
marisol123
Posts: 4
|
| Posted: 03/22/2010, 10:48 AM |
|
Quote Kris:
I'm now little bit in big question!!!
In HTML and Design mode I have all proper accents characters, but in Code mode (VB) they are strange hieroglyphs!!!!
Only what working is to manually change accents characters in Code mode!!
And I can pray God for staying that accent characters in Code mode at that condition!
If anybody found solution for solving that problem with accent characters, please, share with us and we will multi- grateful for that!
Hi Kris,
I´m using php and instead of using accents I put html code in the code mode by now. I recommend you to assign support ticket. I did it and they are investigating. I think my especifications with yours can help them to find the solution ASAP.
|
 |
 |
Kris
Posts: 8
|
| Posted: 03/24/2010, 4:45 AM |
|
Quote marisol123:
Hi Kris,
I´m using php and instead of using accents I put html code in the code mode by now. I recommend you to assign support ticket. I did it and they are investigating. I think my especifications with yours can help them to find the solution ASAP.
Marisol,
I'm also in connection with Yes support! :)
I'm glad that you sent also ticket to support, more heads - more solving problems! :)
Br,
_________________
Kris |
 |
 |
joejac
Posts: 242
|
| Posted: 04/01/2010, 1:09 PM |
|
Hello,
I quote from John from this post: http://forums.codecharge.com/posts.php?post_id=105263
Please be aware that: Windows-1252 is called Western European (Windows).
Hope this help
Best regards
joejac
The solution:
Quote :
Hi Again
I just looked up the project I solved this type of problem in
It was for this multi-language site.
http://realtest.biz/TAXIFEE
Notice in the dropdown language selection menu. The special language characters do display properly.
Here were my settings I used to make this work:
MySql colation for your table should be utf8_general_ci or utf8_general_CS , depending on your case sesnitivity requirements.
In the CCS Project for locales + Settings the file encoding is set to Western European (Windows-1252)
In the properties data for the project Charset is set to Windows-1252 and Output File set to Windows.
These settings were able to deal with the special characters. There night be other combos that will also. But after messing with it for a long time I found this works fine.
Let me know if that helps.
John
|
 |
 |
|