I have created a sample Indian site and tried in Safari on MAC 10.5.5, I am unable to view, Browser shows Boxes instead of valid text.
I tried the same on latest firefox browser but same issue. I have changed the encoding to UTF-8 in browser preferences but it not help.
Please let me know how to resolve this.
Thanks in advance,
Laxmilal Menara
How's encoded your file ? What charset do you provide in your metas ?
A good method should be to encode all your files in UTF-8, and to provide a nice meta as
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
try to encode your font with unicode standards
Related
Reaching out to see if any ADA compliance experts might know how I might resolve an ADA compliance issue pertaining to our video transactions. We essentially provide links to .txt files for all of our videos which contain the video transcription. But when running an ADA scan we receive 2 errors pertaining to our transcriptions.
"Language missing or invalid "
"Missing or uninformative page title"
I'm not sure how I would tell a screen reader or ADA scanner the language or a page title given that these are just plain txt files. Any assistance would be greatly appreciated. Thanks.
This might be more about how your browser is set up to handle .txt files. Is your default action to download the file or to view it in the browser?
If the file is downloaded, then it's up to the end user to display the .txt file in whatever program they have set up to view them.
If you're letting the browser display the page, then that page is generated by the browser and I'm not sure if you can customize the page that's generated. I tried Firefox, Chrome, and Edge and they all generated a similar template to view a text file. (Edge uses the chromium engine so it's not surprising that Edge and Chrome have the same template). There's just a minor difference in the <head> between Firefox and Chrome.
This is essentially what's generated:
<html>
<head>
<!-- if using firefox -->
<link rel="stylesheet" href="resource://content-accessible/plaintext.css">
<!-- if using chrome/edge -->
<meta name="color-scheme" content="light dark">
</head>
<body>
<pre>
(contents of text file)
</pre>
</body>
</html>
If you run an accessibility scanner on this generated page, you will indeed get the two errors you mentioned.
3.1.1 Language of Page
2.4.2 Page Titled
For the language, that's specified on the <html> element with the lang attribute. If you bring up the code inspector on this stackoverflow page, you'll see lang="en":
<html class="html__responsive " lang="en">
For the page title, that's specified in the <head> with a child element of <title>. You can also see that in the stackoverflow page:
<head>
<title>wcag - ADA Compliance Language Missing or Invalid for video transcription txt files - Stack Overflow</title>
...
</head>
If no page title is specified, the browser usually shows the URL or just the filename as the title.
So, can you do anything about the template? I'm not sure. That would be an interesting project.
An alternative is to have your own webpage display the text file, which you would obviously have complete control over and could specify the language and the page title. But I would make this a lower priority issue over other accessibility issues that your website might have.
I have a page using the mixitup jquery script.
It works perfectly in Chrome, Opera and IE11.
But I need it to work in IE8 too.
I have the script working in IE8, just without the fancy animations, which is fine.
Except, it only works in IE8 when I set the browser compatibility view to 'Internet Explorer 8 Compatibility View'.
In the screenshot below, it shows different version, but you can see what option I mean, the second one rather than the first one.
I have tried entering the following meta to the top of page:
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
and also:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >
But both those just seem to force the 'Internet Explorer 8', the equivalent to the top options in the screenshot... not the second one, which I need.
Can that be done?
thanks
If I understand your question correctly then may be below explanation will help you.
Using <meta http-equiv="X-UA-Compatible" content=" _______ " />
The Standard User Agent modes (the non-emulate ones) ignore <!DOCTYPE> directives in your page and render based on the standards supported by that version of IE (e.g., IE=8 will better obey table border spacing and some pseudo selectors than IE=7).
Whereas, the Emulate modes tell IE to follow any <!DOCTYPE> directives in your page, rendering standards mode based the version you choose and quirks mode based on IE=5
Possible values for the content attribute are:
content="IE=5"
content="IE=7"
content="IE=EmulateIE7"
content="IE=8"
content="IE=EmulateIE8"
content="IE=9"
content="IE=EmulateIE9"
content="IE=edge"
If meta tag solution wasn't working for you then set it
header('X-UA-Compatible: IE=edge,chrome=1');
I am using translation files for translating my xpages application to turkish language.
I have set the application encoding to UTF-8 (xsp.html.page.encoding=utf-8)
Most of my languages is working fine but there is problem with Turkish and Polish
The problem I have is that the labels from the translation file do not display the correct encoding even though I have it set up correctly.
All content that is created on my site display correctly in turkish but not the labels from the translation files.
I have tried setting lang=tr, lang=tr-TR, added UTF-8 meta tags, and changed the property file encoding to UTF-8 but still it is not working,
Here is an example
This is Correct turkish entered into the translation file
FACEBOOK KİŞİLİĞİNİZ İLE GİRİŞ YAPIN
This is a sample what the browser outputs
FACEBOOK KÝÞÝLÝÐÝNÝZ ÝLE GÝRÝÞ YAPIN
This is my header settings
<html lang="tr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
You can also see a live example of this problem at http://www.intrapages.com
at the bottom of the login screen there is change language link, set it to turkish
This is a unicode issue. Designer does not convert those characters to unicode.
You can export '.properties' file, use native2ascii command line utility to convert it to unicode values (\uXXXX format).
Another easy option is using an online native2ascii converter. There are a couple of those I know (e.g. this and this)
I'm using in my website some of the Telerik controls. (framework 2) Now i need to change the meta line to:
<meta http-equiv="X-UA-Compatible" content="IE=9">
instead of:
<meta http-equiv="X-UA-Compatible" content="IE=7">
For css compabilty(for border radius and other things), when i change this line, the telerik controls in some pages are not looking good.
Does anyone have any idea?
Because the stylesheet streamed out from Telerik.Web.Resource.axd handler does not set the mime type properly and IE9 ignores stylesheets without proper mimetype set.
I am not aware of any solution for it except adding the IE7 compatibility meta tag.
Solution:
Create a new code file and add the embedded stylesheets with the assembly code as below.
[assembly: WebResource("Assets.Skins.Calendar.Custom.css", "text/css")]
I need to display an alert box in other than English language for which I am making use of bean message using Application Resource properties file. The code written in JSP works perfect in Firefox but in IE the characters are messed up and I get all box signs inside alert box.The same problem occurs for ToolTips as well. Any solutions?
Check your page encodings
FF uses UTF-8 page Encoding. View--> Character Encodings
Earlier versions of IE set character encoding according to the language on the client when the document did not specify encoding
Which IE Version are you using ?
This may help also. IE uses the wrong character set when it renders an HTML page
Is charset is utf in headers ?
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I did found a solution for my query. Actually the issues were with the tool tips and alert boxes were getting displayed in box sign characters only in Internet Explorer and that too in Windows Xp but working properly in windows 7 and other browsers.
What i did was:
1. Right Click On Desktop
2. Properties
3. Appearence Tab
4. Click On Advanced Button
5. In the Item Combo box Select MessageBox(the font combo box should get enabled by then)
6. Select Arial MS Unicode Font instead of Tahoma(Windows XP Default) Font.
And then Check. The desired output will be seen. This is a work around solution but it seems to work fine. Thanks WouterH and Hardik for your guidance till here.