# |
Aug 10th 2008, 11:40 |
M4ngoB00M |
AHA - getting closer - k the default view says: <?php echo $html->charset(); ?> now where the hell is $html->charset() defined? |
# |
Aug 10th 2008, 11:39 |
TheBig |
is that what you mean? |
# |
Aug 10th 2008, 11:39 |
TheBig |
where you have <?php echo $html->charset(); ?> |
# |
Aug 10th 2008, 11:38 |
TheBig |
default is /cake/libs/view/layouts/default.ctp |
# |
Aug 10th 2008, 11:38 |
TheBig |
it's usually written into the layout parts |
# |
Aug 10th 2008, 11:38 |
M4ngoB00M |
yes |
# |
Aug 10th 2008, 11:38 |
TheBig |
in the head section? |
# |
Aug 10th 2008, 11:38 |
TheBig |
M4ngoB00M, you mean the default charset string? |
# |
Aug 10th 2008, 11:37 |
M4ngoB00M |
k |
# |
Aug 10th 2008, 11:37 |
cpierce |
i've never scaffoid |
# |
Aug 10th 2008, 11:36 |
M4ngoB00M |
k - will poke around |
# |
Aug 10th 2008, 11:36 |
M4ngoB00M |
in the scaffolded view layouts is empty... I am talking about the default scaffolded view |
# |
Aug 10th 2008, 11:36 |
cpierce |
see my above question... |
# |
Aug 10th 2008, 11:36 |
cpierce |
but i'm new to 1.2 |
# |
Aug 10th 2008, 11:36 |
cpierce |
thats where i always put mine |
# |
Aug 10th 2008, 11:36 |
cpierce |
where i would specify it in my cake would be in /views/layouts/ |
# |
Aug 10th 2008, 11:35 |
cpierce |
AddDefaultCharset UTF-8 |
# |
Aug 10th 2008, 11:35 |
M4ngoB00M |
hrm - k - i will try that... but also - just for my info - any idea where the meta tag gets inserted in the html stream? |
# |
Aug 10th 2008, 11:35 |
cpierce |
i'm saying that if you specify it in apache it won't matter what the meta tag says |
# |
Aug 10th 2008, 11:34 |
M4ngoB00M |
yeah i do - its my localhost |
# |
Aug 10th 2008, 11:34 |
M4ngoB00M |
really - you mean apache is inserting the meta tag into my rendered html ? ummm... I dunno |
# |
Aug 10th 2008, 11:34 |
cpierce |
do you have access to that? |
# |
Aug 10th 2008, 11:34 |
cpierce |
its specified in the httpd |
# |
Aug 10th 2008, 11:34 |
cpierce |
usually |
# |
Aug 10th 2008, 11:34 |
M4ngoB00M |
*ctp |
# |
Aug 10th 2008, 11:34 |
M4ngoB00M |
its not in the tpl file, seems to be in a dynamically genered style or something? |
# |
Aug 10th 2008, 11:33 |
M4ngoB00M |
ok - yeah that was where I was going... however - my problem now is i cant find in my cake source where the charset is even defined for the scaffolded view... |
# |
Aug 10th 2008, 11:33 |
cpierce |
i'd switch to utf-8 |
# |
Aug 10th 2008, 11:32 |
cpierce |
or specify your page content type as iso8559-1 |
# |
Aug 10th 2008, 11:32 |
M4ngoB00M |
cpierce: OK - fair enough... so what you are saying is I should switch everything to UTF-8? |
# |
Aug 10th 2008, 11:30 |
cpierce |
not your browser but your ... web server (apache) |
# |
Aug 10th 2008, 11:29 |
cpierce |
and your symbols are a bit different in those two charsets |
# |
Aug 10th 2008, 11:29 |
cpierce |
M4ngoB00M: the problem you are having is that your browser is utf8 and your html is iso-8859-1 |
# |
Aug 10th 2008, 11:29 |
M4ngoB00M |
I see all the associated ctp files start with: <div class="currencyCodes index"> but need to figure out where this css style gets defined - cause of course its not in the cake.generic.css |
# |
Aug 10th 2008, 11:28 |
cpierce |
whats the best place to look if i'm movng from 1.1. to 1.2. and want to see in a nutshell what i should expect to be different |
# |
Aug 10th 2008, 11:25 |
M4ngoB00M |
I have looked in views/currency_codes/ and all the ctp files there - but do not see it - must be included from somehwhere else? |
# |
Aug 10th 2008, 11:25 |
M4ngoB00M |
I am using latin1 encoding so when i changed the html page encoding to iso-8859-1 (latin1) the symbol display correctly - but only in a quick test... now can someone help me find this in the scaffolded source? heh |
# |
Aug 10th 2008, 11:17 |
davidpersson |
M4ngoB00M: and in the html page it the content type must be "UTF-8" |
# |
Aug 10th 2008, 11:16 |
zmonteca |
morning all...when doing a deleteAll on a habtm table with cascade set to true ($habtm->deleteAll(condition, true)), shouldn't that trickle down to all tables in the model set to dependent = true???? |
# |
Aug 10th 2008, 11:14 |
davidpersson |
M4ngoB00M: if you are using utf-8 with mysql you must specify it as "utf8" |
# |
Aug 10th 2008, 11:13 |
M4ngoB00M |
k - thx - checking |