Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Code not displaying Hebrew

I have the following code. When we enter the site title in the database in hebrew the display comes out as ????????. What can I do to fix it?
<tr>
			<td width="10" background="images/center_ver_left.gif"><img src="images/spacer.gif" width="1" height="1"></td>
			<td width="560" height="650" valign="top" style="padding-left:5px; padding-right:5px; padding-top:20px; padding-bottom:20px">
			
				<table width="560" cellpadding="0" cellspacing="0" class="normal_12_black" border="0">
				<tr>
					<td><img src="site_title_header.php?title={$listing_title} ..."></td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="top"></a><strong>Property Information ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>

Open in new window

0
Starquest321
Asked:
Starquest321
  • 15
  • 9
1 Solution
 
biztigerCommented:
First check out the link and see if you have maintained all the steps described on the post.

http://www.experts-exchange.com/Database/MySQL/Q_23635041.html

As east-asian language and hebrew all are falls on UTF-8 category, just check the link. I'm sure you'll find your answer.

For your code snippet it is just a partial html (only html body).  There is no problem in your snippet if you maintain the steps described on the post.
0
 
Starquest321Author Commented:
Apologies - here is the full code:
<?php
header('Content-type: text/html; charset=UTF-8');
?>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>{$meta_title}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$meta_encoding}">
<meta name="keywords" content="{$meta_keyword}">
<meta name="description" content="{$meta_description}">
 
 
 
 
{$javascript_rightclick}
<script language="javascript" type="text/javascript" src="javascript.js"></script>
<script language="javascript" type="text/javascript" src="bookmark.js"></script>
<script language="javascript" type="text/javascript" src="show_hidden.js"></script>
 
{if $google_map_display == "yes"}
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key={$google_key}" type="text/javascript"></script>
<script type="text/javascript" src="site_detail_googlemap.php?listing={$listing_id}"></script>
{/if}
 
<link href="class.css" type="text/css" rel="stylesheet">
</head>
 
<body onunload="GUnload()">
<table cellpadding="0" cellspacing="0" border="0" align="center">
<!-- global_top.html -->
{include file="global_top.html"} 
<!-- global_top.html -->
 
<tr>
	<td width="10"><img src="images/spacer.gif" border="0" width="10" height="1"></td>	
	<td valign="top">
	
		<!-- global_left.html -->
		{include file="global_left.html"} 
		<!-- global_left.html -->
	
	</td>
	<td width="5"><img src="images/spacer.gif" border="0" width="5" height="1"></td>	
	<td valign="top">
	
		<!-- center for content -->
		<table cellpadding="0" cellspacing="0" border="0" align="center">
		<tr>
			<td><img src="images/center_left_top.gif" width="10" height="6"></td>
			<td background="images/center_hor_top.gif"><img src="images/spacer.gif" width="1" height="1"></td>
			<td><img src="images/center_right_top.gif" width="10" height="6"></td>
		</tr>
		<tr>
			<td width="10" background="images/center_ver_left.gif"><img src="images/spacer.gif" width="1" height="1"></td>
			<td width="560" height="650" valign="top" style="padding-left:5px; padding-right:5px; padding-top:20px; padding-bottom:20px">
			
				<table width="560" cellpadding="0" cellspacing="0" class="normal_12_black" border="0">
				<tr>
					<td><img src="site_title_header.php?title={$listing_title} ..."></td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="top"></a><strong>Property Information ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px">
					
						{if $warning}
				
							{if $warning == "favourite_ok"}
							<font class="normal_12_red"><strong>You have successfully added this listing to your favourite ...</strong></font><br><br>
							{else}
							<font class="normal_12_red"><strong>{$warning}</strong></font><br><br>
							{/if}
							
						{/if}
						
						<table border="0" cellpadding="2" cellspacing="0">
						<tr>
						  <td valign="top" width="260">
							
								<img src="site_title_small.php?title={$listing_title}" border="0">
								<br>
								
								{$listing_address}<br><br>
								
								{$listing_suburb}<br>
								{$listing_city}, {$listing_state} - {$listing_zip}<br>
								{$listing_country}
								<br><br><br>
								
								<table border="0" cellpadding="2" cellspacing="0">
								{if $listing_mls != ""}
								<tr>
									<td><strong>MLS Number</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_mls}</strong></font></td>
								</tr>
								{/if}
								{if $listing_type != ""}
								<tr>
									<td><strong>Type</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_type}</strong></font></td>
								</tr>
								{/if}
								{if $listing_purpose == "sale"}
								<tr>
									<td><strong>Price</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_price}</strong></font></td>
								</tr>
								{/if}
								{if $listing_purpose == "rent"}
								<tr>
									<td><strong>Rent Price</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_price}</strong></font></td>
								</tr>
								<tr>
									<td><strong>Rent Period</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_rent}</strong></font></td>
								</tr>
								{/if}
								{if $listing_availability != ""}
								<tr>
									<td><strong>Availability</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_availability}</strong></font></td>
								</tr>
								{/if}
								<tr>
									<td height="10" colspan="3"><img src="images/spacer.gif" width="1" height="1"></td>
								</tr>
								{if $listing_bedrooms != ""}
								<tr>
									<td><strong># Beds</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_bedrooms}</strong></font></td>
								</tr>
								{/if}
								{if $listing_bathrooms != ""}
								<tr>
									<td><strong># Baths</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_bathrooms}</strong></font></td>
								</tr>
								{/if}
								{if $listing_story != ""}
								<tr>
									<td><strong># Stories</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_story}</strong></font></td>
								</tr>
								{/if}
								{if $listing_rooms != ""}
								<tr>
									<td><strong># Rooms</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_rooms}</strong></font></td>
								</tr>
								{/if}
								{if $listing_garage != ""}
								<tr>
									<td><strong># Garages</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_garage}</strong></font></td>
								</tr>
								{/if}
								{if $listing_buildingstyle != ""}
								<tr>
									<td><strong>Building Style</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_buildingstyle}</strong></font></td>
								</tr>
								{/if}
								{if $listing_lotsize != ""}
								<tr>
									<td><strong>Lot Size</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_lotsize}</strong></font></td>
								</tr>
								{/if}
								{if $listing_squarefeet != ""}
								<tr>
									<td><strong>SQ Feet</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_squarefeet}</strong></font></td>
								</tr>
								{/if}
								{if $listing_yearbuilt != ""}
								<tr>
									<td><strong>Year Built</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_yearbuilt}</strong></font></td>
								</tr>
								{/if}
								{if $listing_exterior != ""}
								<tr>
									<td><strong>Exterior</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_exterior}</strong></font></td>
								</tr>
								{/if}
								{if $listing_interior != ""}
								<tr>
									<td><strong>Interior</strong></td>
									<td width="10" align="center"><strong> : </strong></td>
									<td><font class="normal_12_red"><strong>{$listing_interior}</strong></font></td>
								</tr>
								{/if}
								</table>
								<br><br><br>
								
 
 
							</td>
							<td valign="top" width="250" align="center">
						
								<table bgcolor="#FFFFFF" border="0" cellpadding="2" cellspacing="0" style="border:0px solid #bf0000" class="list_picture_status">
								<tr>
									<td><img src="photo_view_medium.php?photo={$listing_photo_main}"></td>
								</tr>
								</table>
 
 
								<table border="0" cellpadding="0" cellspacing="0" class="normal_11_red">
								<tr>
									<td height="20" colspan="2"><img src="images/spacer.gif" width="1" height="1"></td>
								</tr>
								<tr>
									<td colspan="2"><img src="site_title_small.php?title=QUICK LINKS" border="0"></td>
								</tr>
								<tr>
									<td height="10" colspan="2"><img src="images/spacer.gif" width="1" height="1"></td>
								</tr>
								<tr>
									<td valign="top" width="110">
									
										<table bgcolor="#FFFFFF" border="0" cellpadding="2" cellspacing="0" style="border:0px solid #bf0000">
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a onClick="print_page({$listing_number})" class="normal_11_red" style="cursor:pointer">Print</a></td>
										</tr>
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a href="{$listing_url_contact}#form" class="normal_11_red">Contact Owner</a></td>
										</tr>
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a href="{$listing_url_tellfriend}#form" class="normal_11_red">Tell Friend</a></td>
										</tr>
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a href="javascript:bookmarksite('{$listing_title_safe}','{$listing_url_complete}');" class="normal_11_red">Bookmark</a></td>
										</tr>
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a href="{$listing_url_favourite}" class="normal_11_red">Add to Favourite</a></td>
										</tr>
										{if $listing_purpose == "sale"}
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a onClick="open_calculator({$listing_number})" class="normal_11_red" style="cursor:pointer">Loan Calculator</a></td>
										</tr>
										{/if}
										</table>
									
									
									</td>
									<td valign="top" width="100">
									
										<table bgcolor="#FFFFFF" border="0" cellpadding="2" cellspacing="0" style="border:0px solid #bf0000">
										{if $google_map_display == "yes"}
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a href="#googlemap" class="normal_11_red">See Map</a></td>
										</tr>
										{/if}
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a href="#details" class="normal_11_red">Details</a></td>
										</tr>
										{if $photo_found > 0}
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a href="#photos" class="normal_11_red">Pictures</a></td>
										</tr>
										{/if}
										{if $photo_found > 1}
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a onClick="slideshow({$listing_number})" class="normal_11_red" style="cursor:pointer">Slide Show</a></td>
										</tr>
										{/if}
										{if $document_found > 0}
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a href="#documents" class="normal_11_red">Documents</a></td>
										</tr>
										{/if}
										{if $video_found > 0}
										<tr>
											<td align="left"><img src="images/double_arrow_right.gif" width="7" height="6"></td>
											<td align="left"><a href="#video" class="normal_11_red">Video Tours</a></td>
										</tr>
										{/if}
										</table>
									
									
									</td>
								</tr>
								</table>								
 
 
							</td>
						</tr>
						</table>						
 
					</td>
				</tr>
 
 
 
				{if $listing_full_desc}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="details"></a><strong>Full Description ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="20"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px; padding-right:20px;">
						{$listing_full_desc}
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
					</td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				{/if}
 
 
				{if $listing_school != ""}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="details"></a><strong>School Information ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="20"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px; padding-right:20px;">
						{$listing_school}
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
					</td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				{/if}
 
 
 
				{if $listing_condition != ""}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="details"></a><strong>Property Condition ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="20"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px; padding-right:20px;">
						{$listing_condition}
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
					</td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				{/if}
 
 
 
				{if $listing_direction != ""}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="details"></a><strong>Direction to this Property ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="20"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px; padding-right:20px;">
						{$listing_direction}
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
					</td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				{/if}
 
 
				{if $google_map_display == "yes"}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="googlemap"></a><strong>Get Directions ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="15"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px">
					
						<div id="map_canvas" style="width: 500px; height: 300px"></div>
						<noscript>
						<b>JavaScript must be enabled in order for you to use Google Maps.</b> 
						However, it seems JavaScript is either disabled or not supported by your browser. 
						To view Google Maps, enable JavaScript by changing your browser options, and then 
						try again.
						</noscript>
 
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
					
					</td>
				</tr>
				{/if}
 
 
 
				{if $photo_found > 0}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="photos"></a><strong>Browse Photos ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="25"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px" align="center">
					
					
					
						<table bgcolor="#FFFFFF" border="0" cellpadding="2" cellspacing="0" style="border:3px solid #A3CAF1" class="list_picture_status">
							<tr>
								<td><img src="photo_view_popup.php?photo={$photo_main_id}" border="0" name="photo_img"></td>
							</tr>
						</table>
 
						<div id="photo_text"><strong>{$photo_main_txt}</strong></div>
						<br><br><br>
						
						
						{if $photo_found > 1}
						Please click on the thumbnails below to enlarge the picture ..
						<br><br>
 
						<table border="0" cellpadding="2" cellspacing="0" class="normal_12_black"> 
						{section name=row loop=$row_photo_id} 
						<tr>
							<td>
							
								<table bgcolor="#FFFFFF" border="0" cellpadding="1" cellspacing="0" style="border:1px solid #A3CAF1" class="list_picture_status">
								<tr>
									<td width="{$photo_width_thumb}" height="{$photo_height_thumb}" align="center" valign="middle"><a onClick="preview_image('photo_view_popup.php?photo={$row_photo_id[row]}', '{$row_photo_caption[row]}')" style="cursor:pointer"><img src="photo_view_small.php?photo={$row_photo_id[row]}" border="0"></a></td>
								</tr>
								</table>
 
							</td>
							{section name=col loop=$col_photo_id[row]}
							<td>
							
								<table bgcolor="#FFFFFF" border="0" cellpadding="1" cellspacing="0" style="border:1px solid #A3CAF1" class="list_picture_status">
								<tr>
									<td width="{$photo_width_thumb}" height="{$photo_height_thumb}" align="center" valign="middle"><a onClick="preview_image('photo_view_popup.php?photo={$col_photo_id[row][col]}', '{$col_photo_caption[row][col]}')" style="cursor:pointer"><img src="photo_view_small.php?photo={$col_photo_id[row][col]}" border="0"></a></td>
								</tr>
								</table>
 
							</td>
							{/section}
 
						</tr>
						{/section}
						</table>	
						{/if}
						
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
						
 
					</td>
				</tr>
				{/if}
 
 
 
				{if $listing_total_environment > 0}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="details"></a><strong>Surrounding Environment ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="20"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px; padding-right:20px;">
 
 
						<table border="0" cellpadding="2" cellspacing="0">
						{section name=row loop=$listing_row_environment_id}
						<tr>
							<td width="150">{$listing_row_environment_name[row]}</td>
							{section name=col loop=$listing_col_environment_id[row]}
							<td width="150">{$listing_col_environment_name[row][col]}</td>
							{/section}
						</tr>
						{/section}
						</table>
 
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
					</td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				{/if}
 
 
 
				{if $listing_total_appliance > 0}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="details"></a><strong>Ready To Use Appliances ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="20"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px; padding-right:20px;">
 
 
						<table border="0" cellpadding="2" cellspacing="0">
						{section name=row loop=$listing_row_appliance_id}
						<tr>
							<td width="150">{$listing_row_appliance_name[row]}</td>
							{section name=col loop=$listing_col_appliance_id[row]}
							<td width="150">{$listing_col_appliance_name[row][col]}</td>
							{/section}
						</tr>
						{/section}
						</table>
 
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
					</td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				{/if}
 
 
 
				{if $listing_total_accomodation > 0}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="details"></a><strong>Accomodations for This Property ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="20"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px; padding-right:20px;">
 
 
						<table border="0" cellpadding="2" cellspacing="0">
						{section name=row loop=$listing_row_accomodation_id}
						<tr>
							<td width="150">{$listing_row_accomodation_name[row]}</td>
							{section name=col loop=$listing_col_accomodation_id[row]}
							<td width="150">{$listing_col_accomodation_name[row][col]}</td>
							{/section}
						</tr>
						{/section}
						</table>
 
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
					</td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				{/if}
 
 
 
 
				{if $listing_total_neighborhood > 0}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="details"></a><strong>Neigborhoods ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="20"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px; padding-right:20px;">
 
 
						<table border="0" cellpadding="2" cellspacing="0">
						{section name=row loop=$listing_row_neighborhood_id}
						<tr>
							<td width="150">{$listing_row_neighborhood_name[row]}</td>
							{section name=col loop=$listing_col_neighborhood_id[row]}
							<td width="150">{$listing_col_neighborhood_name[row][col]}</td>
							{/section}
						</tr>
						{/section}
						</table>
 
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
					</td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				{/if}
 
 
 
				{if $listing_total_feature > 0}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="details"></a><strong>Other Features ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="20"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px; padding-right:20px;">
 
 
						<table border="0" cellpadding="2" cellspacing="0">
						{section name=row loop=$listing_row_feature_id}
						<tr>
							<td width="150">{$listing_row_feature_name[row]}</td>
							{section name=col loop=$listing_col_feature_id[row]}
							<td width="150">{$listing_col_feature_name[row][col]}</td>
							{/section}
						</tr>
						{/section}
						</table>
 
						<br><br>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
					</td>
				</tr>
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				{/if}
 
 
 
 
 
				{if $document_found > 0}
				<tr>
					<td height="30"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="documents"></a><strong>Additional Documents ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="25"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px">
					
						Please click on <font class="normal_12_red">View Details</font> to download or to see the document details ...
						<br><br><br>
						
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
						{section name=var loop=$document_id} 
						<tr>
							<td>
							
								<div id="document_short_{$document_id[var]}">
								<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="80%" align="left"><strong>{$document_title[var]}</strong></td>
									<td width="20%" align="right"><a onclick="set_layer('document_short_{$document_id[var]}', 'none'); set_layer('document_detail_{$document_id[var]}', 'block');" class="normal_12_red" style="cursor:pointer">View Details</a></td>
								</tr>
								</table>
								</div>
								
							</td>
						</tr>
						<tr>
							<td>
							
								<div id="document_detail_{$document_id[var]}" style="display:none">
								<table border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td valign="top" align="left" style="padding-top:20px;">
 
										<font class="normal_12_red"><strong>{$document_title[var]}</strong></font>
										<br>
										
										{$document_description[var]}
										<br><br>
										
										&raquo; <a href="{$document_url[var]}" class="normal_12_red" target="_blank">Download this document</a>
										<br><br>
										
										<div align="right">
										<a onclick="set_layer('document_short_{$document_id[var]}', 'block'); set_layer('document_detail_{$document_id[var]}', 'none');" class="normal_12_red" style="cursor:pointer">Hide Details</a>
										</div>
									
									</td>
								</tr>
								</table>
								</div>
								
							</td>
						</tr>
						<tr>
							<td height="10"><img src="images/spacer.gif" width="1" height="1"></td>
						</tr>
						<tr>
							<td bgcolor="#A3CAF1" height="1" style="padding:0px"><img src="images/spacer.gif" width="1" height="1"></td>
						</tr>
						<tr>
							<td height="10"><img src="images/spacer.gif" width="1" height="1"></td>
						</tr>
						{/section}
						</table>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
						
					</td>
				</tr>
				{/if}
 
 
 
 
				{if $video_found > 0}
				<tr>
					<td height="50"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="28" background="images/bg_tab.gif" style="background-repeat:no-repeat; padding-left:28px; padding-top:5px" class="normal_12_blue_verdana" valign="top">
						<a name="video"></a><strong>Additional Videos ... </strong>
					</td>
				</tr>
				<!-- the tab -->
				<tr>
					<td height="25"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td style="padding-left:28px">
					
						Please click on <font class="normal_12_red">View Details</font> to download or to see the video details ...
						<br><br><br>
						
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
						{section name=var loop=$video_id} 
						<tr>
							<td>
							
								<div id="video_short_{$video_id[var]}">
								<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="80%" align="left"><strong>{$video_title[var]}</strong></td>
									<td width="20%" align="right"><a onclick="set_layer('video_short_{$video_id[var]}', 'none'); set_layer('video_detail_{$video_id[var]}', 'block');" class="normal_12_red" style="cursor:pointer">View Details</a></td>
								</tr>
								</table>
								</div>
								
							</td>
						</tr>
						<tr>
							<td>
							
								<div id="video_detail_{$video_id[var]}" style="display:none">
								<table border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td valign="top" align="left" style="padding-top:20px;">
 
										<font class="normal_12_red"><strong>{$video_title[var]}</strong></font>
										<br>
										
										{$video_description[var]}
										<br><br>
										
										&raquo; <a href="{$video_url[var]}" class="normal_12_red" target="_blank">Download this video</a>
										<br><br>
										
										<div align="right">
										<a onclick="set_layer('video_short_{$video_id[var]}', 'block'); set_layer('video_detail_{$video_id[var]}', 'none');" class="normal_12_red" style="cursor:pointer">Hide Details</a>
										</div>
									
									</td>
								</tr>
								</table>
								</div>
								
							</td>
						</tr>
						<tr>
							<td height="10"><img src="images/spacer.gif" width="1" height="1"></td>
						</tr>
						<tr>
							<td bgcolor="#A3CAF1" height="1" style="padding:0px"><img src="images/spacer.gif" width="1" height="1"></td>
						</tr>
						<tr>
							<td height="10"><img src="images/spacer.gif" width="1" height="1"></td>
						</tr>
						{/section}
						</table>
						<div align="center"><a href="#top" class="normal_11_red">Go to top</a></div>
						
					</td>
				</tr>
				{/if}
 
 
				</table>
 
				
			</td>
			<td width="10" background="images/center_ver_right.gif"><img src="images/spacer.gif" width="1" height="1"></td>
		</tr>
		<tr>
			<td><img src="images/center_left_bottom.gif" width="10" height="6"></td>
			<td background="images/center_hor_bottom.gif"><img src="images/spacer.gif" width="1" height="1"></td>
			<td><img src="images/center_right_bottom.gif" width="10" height="6"></td>
		</tr>
		</table>
		<!-- center for content -->
	
	</td>
	<td width="5"><img src="images/spacer.gif" border="0" width="5" height="1"></td>	
	<td valign="top">
	
		<!-- global_right.html -->
		{include file="global_right.html"} 
		<!-- global_right.html -->
	
	</td>
	<td width="10"><img src="images/spacer.gif" border="0" width="10" height="1"></td>	
</tr>
 
<!-- global_bottom.html -->
{include file="global_bottom.html"} 
<!-- global_bottom.html -->
</table>
 
{if $google_map_display == "yes"}
<script type="text/javascript" src="site_detail_loadmap.php?listing={$listing_id}"></script>
{/if}
 
</body>
</html>

Open in new window

0
 
Starquest321Author Commented:
I am not sure where to put the code from the your previous recommendation. . can you assist?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Starquest321Author Commented:
Here is the other page which maybe actually displaying the site. . .
<?php
header('Content-type: text/html; charset=UTF-8');
?>
 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>{$meta_title}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$meta_encoding}">
<meta name="keywords" content="{$meta_keyword}">
<meta name="description" content="{$meta_description}">
 
{$javascript_rightclick}
<script language="javascript" type="text/javascript" src="javascript.js"></script>
<link href="class.css" type="text/css" rel="stylesheet">
</head>
 
<body>
<table cellpadding="0" cellspacing="0" border="0" align="center">
<!-- global_top.html -->
{include file="global_top.html"} 
<!-- global_top.html -->
 
<tr>
	<td width="10"><img src="images/spacer.gif" border="0" width="10" height="1"></td>	
	<td valign="top">
	
		<!-- global_left.html -->
		{include file="global_left_resources.html"} 
		<!-- global_left.html -->
	
	</td>
	<td width="5"><img src="images/spacer.gif" border="0" width="5" height="1"></td>	
	<td valign="top">
	
		<!-- center for content -->
		<table cellpadding="0" cellspacing="0" border="0" align="center">
		<tr>
			<td><img src="images/center_left_top.gif" width="10" height="6"></td>
			<td background="images/center_hor_top.gif"><img src="images/spacer.gif" width="1" height="1"></td>
			<td><img src="images/center_right_top.gif" width="10" height="6"></td>
		</tr>
		<tr>
			<td width="10" background="images/center_ver_left.gif"><img src="images/spacer.gif" width="1" height="1"></td>
			<td width="560" height="650" valign="top" style="padding-left:5px; padding-right:5px; padding-top:20px; padding-bottom:20px">
			
				<table width="560" cellpadding="0" cellspacing="0" class="normal_12_black" border="0">
				<tr>
					<td><img src="site_title_header.php?title={$page_title}"></td>
				</tr>
				<tr>
					<td height="20"><img src="images/spacer.gif" width="1" height="1"></td>
				</tr>
				<tr>
					<td>
						{$page_content}
					</td>
				</tr>
				</table>
 
				
			</td>
			<td width="10" background="images/center_ver_right.gif"><img src="images/spacer.gif" width="1" height="1"></td>
		</tr>
		<tr>
			<td><img src="images/center_left_bottom.gif" width="10" height="6"></td>
			<td background="images/center_hor_bottom.gif"><img src="images/spacer.gif" width="1" height="1"></td>
			<td><img src="images/center_right_bottom.gif" width="10" height="6"></td>
		</tr>
		</table>
		<!-- center for content -->
	
	</td>
	<td width="5"><img src="images/spacer.gif" border="0" width="5" height="1"></td>	
	<td valign="top">
	
		<!-- global_right.html -->
		{include file="global_right.html"} 
		<!-- global_right.html -->
	
	</td>
	<td width="10"><img src="images/spacer.gif" border="0" width="10" height="1"></td>	
</tr>
 
<!-- global_bottom.html -->
{include file="global_bottom.html"} 
<!-- global_bottom.html -->
</table>
 
</body>
</html>

Open in new window

0
 
biztigerCommented:
can you see the hebrew text in phpmyadmin??
0
 
Starquest321Author Commented:
Interesting. The answer is NO: All I see is:
&#1513;&#1500;&#1493;&#1501; &#1513;&#1500;&#1493;...
0
 
biztigerCommented:
I think the problem is in database not in the php template.

check out the following things and post the value:

MySQL charset: Must be utf - 8
MySQL connection collation: utf-8-unicode-ci
Database collation: utf8_unicode_ci

Most Important: The collation of the field where you save the hebrew text: Should be utf8_unicode_ci
0
 
Starquest321Author Commented:
I think we are back to the code being the problem!!

I couldn't figure out why in the listing I was ABLE to SEE some of the Hebrew. I browsed the tables in the database and I found NONE of the fields displayed actual hebrew.

But when the HTML page pulls up fields like Listing_full_description that show up in the database as <p>&#1491;&#1493;&#1508;&#1500;&#1511;&#1505; &#15...  do show the Hebrew when you pull up the page.

What can this be?
0
 
Starquest321Author Commented:
It has to be this line that isn't displaying the utf - 8
<tr>
<td><img src="site_title_header.php?title={$listing_title} ..."></td>
</tr>
                

Open in new window

0
 
Starquest321Author Commented:
The above code and the one below is the ONLY ones not displaying the hebrew:
  <td valign="top" width="260">
							
								<img src="site_title_small.php?title={$listing_title}" border="0">
								<br>

Open in new window

0
 
biztigerCommented:
Which templating engine are you using??
0
 
Starquest321Author Commented:
How do I know?
0
 
Starquest321Author Commented:
What is a templating engine?
0
 
Starquest321Author Commented:
I think something called Smarty...
0
 
biztigerCommented:
<tr>
<td><img src="site_title_header.php?title={$listing_title} ..."></td>
</tr>

Img Src that means you are about to display an image. So where do you want to put the title.
Check this out.
http://www.w3schools.com/htmL/html_images.asp

Also brief the full code, rather than ....................
0
 
Starquest321Author Commented:
I am not sure I understood your suggestion. I posted the full code at the top. . .is that what you mean?
0
 
biztigerCommented:
Look at the code


<img src="site_title_header.php?title={$listing_title} ...">

Now I think this section is creating problem. Img Src menas here you are going to display an image. So, it is creating problem.
0
 
Starquest321Author Commented:
So how can I fix it? Do I have to replace the image?
0
 
biztigerCommented:
image source can't be: site_title_header.php?title={$listing_title}

You need to change this.
0
 
Starquest321Author Commented:
what can it be? To what can I change this to?
0
 
biztigerCommented:
Image source means adress(or location) of the Image like images/pic1.jpg. So, I think you understand site_title_header.php can't resemble a image
0
 
Starquest321Author Commented:
Can I change site_title_header.php to make it display the hebrew? Attached is the site_title_header code....
<?
	
    include("setting.php");
 
	$title			= str_replace("\'", "'", $title);
 
	$file			= "$title.png";
	$text			= html_entity_decode($title, ENT_QUOTES);
	$back_color		= array(255, 255, 255);	// (red, green, blue)
	$front_color	= array(193 , 0 , 0);	// (red, green, blue)
 
	$font_file 		= 'files/font/aglettericacondensedbold.ttf';
	$font_size 		= 18;
	
	$image_width	= (strlen($text)) * ($font_size - 1) + 20;
	$image_height	= 30;
	
	
	$position_left	= 0;
	$position_top	= 20;
	
	include("system_function_title.php");
 
 
 
?>

Open in new window

0
 
biztigerCommented:
change the line 8 to the following:
html_entity_decode($title, ENT_QUOTES,'UTF-8');
0
 
Starquest321Author Commented:
I changed it and it still displays the Question Marks. . . can you suggest an alternative code to:
<img src="site_title_small.php?title={$listing_title}" border="0">

Maybe I can use something else instead?
0
 
bohneenCommented:
 i have  same problem  but i want in arabic
can any one help me ?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 15
  • 9
Tackle projects and never again get stuck behind a technical roadblock.
Join Now