Turkish characters does not display correctly
If you can use Turkish encoding below will be the meta tag
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
else code Tarihçe as
Tarihçe
Turkish characters are not displayed correctly
You can try explicitly adding content type at the top of your file as below
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
and remove the below from your code..
header('Content-Type: text/html; charset=ISO-8859-9');
Update:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php echo "for example Ş and İ "; ?>
</body>
</html>
The above code gives me the below output:
html5 file doesn't show turkish characters as properly
You can use import
with charEncoding
attribute in JSTL core lib.
<c:import url="../templates/allemployees.html" charEncoding="UTF-8" />
EDIT
If you put html files into WEB-INF/templates then you should use mapping
xml:
<mvc:resources mapping="/templates/**" location="/WEB-INF/templates/" />
annotation: add addResourceHandlers method in Config class
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/templates/**").addResourceLocations("/WEB-INF/templates/");
}
so, you can access html file in WEB-INF
folder like this:
<c:import url="/templates/allemployees.html" charEncoding="UTF-8" />
turkish characters problem
Obviously text in your bottom navigation is iso-8859-9 encoded while those in right side navigation are utf-8 encoded. Convert the text in your bottom nav to utf-8 encoding using an editor that allows encoding conversions (like EmEditor) and always use charset=utf-8 as your content type which is the more universal, more flexible and widely supported encoding.
Turkish Charset Issue * Html
Answer: Problem is about the font Lato, even it is compatible with Turkish lang. Even though the Lato itself includes Turkish charset within latin-ext section, it seems it is problematic when it is imported from Google Fonts.
Here is a screenshot from FontSquirrel
Turkish characters are shown properly @FontSquirrel
JSP Turkish Character Problem
I see two potential causes:
- Your editor didn't save the page as UTF-8. Check the default settings and/or the Save As option.
- The
@page
is missing in some of the JSPs. It has to be present in all JSP files, also the includes.
Unrelated to the concrete problem, the following in top of JSP was been enough:
<%@ page pageEncoding="UTF-8" %>
The remnant which you've put there are already (implicit) defaults.
Turkish characters are not shown on TextView
I solved my problem. Here is solution:
in build.gradle(module:app) added this code:
compileOptions.encoding = 'windows-1254'
here is build gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "21.1.2"
compileOptions.encoding = 'windows-1254'
defaultConfig {
applicationId "yazlm.beyaz.keyazarlar"
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
}
Related Topics
Sending/Displaying a Base64 Encoded Image
How to Fix 'Creating Default Object from Empty Value' Warning in PHP
PHP Array_Intersect() Efficiency
What Does $K => $V in Foreach($Ex as $K=>$V) Mean
My Laravel 5.2.10 Sessions Wont Persist
How to Rename a Tag in Simplexml Through a Dom Object
Check If Value Exists Before Inserting into MySQL Db in a PHP Script
Add a Line Break in Woocommerce Product Titles
Handle Guzzle Exception and Get Http Body
How to See the Extensions Loaded by PHP
Guzzle 6: No More JSON() Method for Responses
When Is It Good to Use Pass by Reference in PHP
Auto Increment Skipping Numbers