In Google Chrome, if I create a prompt with an Emoji character, it looks fine there. But, if I put in an input field or in the page itself, all the characters look weird with a square and a cross.
Do you know if this is something I can fix easily?
Is it the charset used in the page (utf-8)?
Is it the font I'm using?
Thank you.
Prompt:
Textarea:
Related
I have a strange issue where accented characters (central european) are not shown correctly. The web site was created in Adobe Muse, and the fonts are Museo Slab and Open Sans (from Typekit) which should contain accented characters and they appear correctly on Typekit's website and on typetester.org as well.
I have checked the code but not found anything what might be causing the issue.
The website (work in progress) is at http://festivalzvsk.businesscatalyst.com/
thanks,
Michael
it was the font subsetting option within Muse - the option 'default subset' in File > Site Properties was not using the full character set (default subsetting is the default option), so when switched to "All' it worked. Many thanks for pointing me to right direction.
I have really weird issue.
I'm sending a user really long link to user (> 30 chars) but unfortunetly it doesn't open properly on Windows Phone - e.g I have link www.test.com/test/{20 chars} and If I click on it, it does open in new tab but it only goes to www.test.com. If I hold on link and manually click to open in new tab it does open properly. What's strange is that it only happens on Windows Phone (android, ios, PC OSes work fine). Link is like this:
Open link
Might be worth to mention that this is GMAIL.
I couldn't find an answer but I'm pretty sure there's way to make it work.
May be it can be issue of escape characters. Try to convert url to escaped url.
Hi so I recently purchased a mac and I am trying to preview my code in safari and its not working my file is saved as .html and everytime I click the file it just shows me my top sites on safari can someone please help me!
I do not have the reputation to comment yet.
Put the file on your desktop and Get Info. Make sure in the name that the extension is .html and you can also try to check/uncheck Hide Extension and try that as well. Also double check to make sure you do not have any illegal characters in your file name.
Make sure you are not using Word or Pages. Use Text Wrangler or Sublime Text (well really any text editor that allows you to save as specific file types).
I use a Mac for all of my web coding and I have never had this issue.
Edit* If you are using an editor that allows you to choose between rich text and plain text make sure you use plain text. TextEdit is not a plain text editor either.
Load Chrome and then use its view > developer > view source menu option. Works well for me!
I wrote a chrome extension - english dictionary. You select word, the definition appears.
It works well, but I counter a problem. It seems there is no api of chrome pdf viewer supplied by google.
How can I get the word when i select a word in pdf using chrome pdf viewer?
I will be appreciate if you could help me.
You can get selected text using the context menu. In your background script, adding these lines will allow the user to right-click and do something with the selectionText.
chrome.contextMenus.create({id:"lookup",title:"Lookup %s",contexts:["selection"]});
chrome.contextMenus.onClicked.addListener(function(sel){
console.log(sel.selectionText);
});
Grabbing this text works fine with PDFs, whether part of the extension, or not.
However, you cannot inject a script into a page starting with "chrome-extension://". If this is how your extension works, that will not be (directly) possible. But getting the selected text, and doing something with it still very doable.
As an alternative to requiring script injection, see the notification api, which allows a small message to popup, which could contain the definition of the word.
On a couple sites I've made random ASCII characters have been appearing in the middle of the document. It's always been on test sites and has never been a problem until my most recent project for a client that it just appeared on. They aren't displayed in the development environment I use (aptana 3), but then appear both on screen and in the source code when viewed in a browser.I've looked around and it looks like others have had the issue but I haven't been able to find any real solution. I tried messing with the text-encoding but nothing changed. Has anyone been able to solve this issue?
Did you try saving your file as UTF-8?
Did you verify that your file is actually saved as UTF-8?
A Linux command to check the file type is:
file -i filename.html
Did you verify the content-header being sent from the webserver?
Is any of the text coming from a database?
You could also try adding the following meta string:
<meta charset="utf-8">
With your example site: http://www.oryxwebstudio.com/saloncruz/#contact
Maybe I'm blind but I do not see any invalid characters in IE, Firefox or Chrome. Here is a screenshot of Firefox: