Jump to content

Max Castril

Members
  • Content Count

    28
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Max Castril

  • Rank
    Newbie

Recent Profile Visitors

1,452 profile views
  1. @Ingolme - I thought all programmers used SciTE. What is the most popular one?
  2. Well, I copied and pasted the text to Notepad and uploaded it and got: string(2) "á" DONE!áTeclado: áRepuesta 1: áRepuesta 2: á Thanks to all for your help
  3. I am using SciTE This is the header for SciTEDoc.html (I cannot find how to see the text editor encoding.): <?xml version="1.0" encoding='utf-8'?> <!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 name="generator" content="HTML Tidy, see www.w3.org" /> <meta name="generator" content="SciTE" /> <meta http-equiv="Content-Type" content="text/html" /> <title> SciTE </title> <style type="text/css">
  4. string(1) "�" DID NOT!Teclado: �Repuesta 1:Repuesta 2:
  5. SciTE.exe donesuk - I tried this: <!doctype html><html lang = "es"><head><meta http-equiv="content-type" content="text/plain"></head><body> but no juice. Now have: <?php header('Content-type: text/html; charset=utf-8'); $char = 'á'; var_dump($char); $char2 = htmlspecialchars($char); $char3 = htmlentities($char); if($char3 == '&aacute;') { echo 'DONE!' . $char3; } else { echo 'DID NOT!'; } echo 'Teclado: ' . $char . '<br /><br />'; echo 'Repuesta 1: ' . $char2 . '<br /><br />'; echo 'Repuesta 2: ' . $char3; echo ' </body>'; ?> Still no juice
  6. I'm rapidly getting out of my depth here.
  7. Thanks Ingolme but it still doesn't work. I have tried evading the browser by this: <?php $char = 'á'; $char2 = htmlspecialchars($char); $char3 = htmlentities($char); if($char3 == '&aacute;') { echo 'DONE!' . $char3; } else { echo 'DID NOT!'; } ?> This code shouldn't be affected by the browser at all, but one interesting thing is that the browser doesn't even recognize the character: DID NOT!Teclado: �Repuesta 1:Repuesta 2:
  8. Just an oldie trying to keep his brain active by frying it in php! 

  9. Can you get https://www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_htmlentities to work on your computer?
  10. Hi everyone. Anyone noticed that htmlentities() aren't working in php? Nor are htmlspecialcharacters. See: https://www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_htmlentities Any ideas?? I have also written a quick and dirty test routine which I have run on my server: <?php if(isset($_POST['char'])) { $char = $_POST['char']; $char2 = htmlspecialchars($char); $char3 = htmlentities($char); echo 'Teclado: ' . $char . '<br /><br />'; echo 'Repuesta 1: ' . $char2 . '<br /><br />'; echo 'Repuesta 2: ' . $char3; } echo '<form action = "char_test.php" method = "post"> <input type = "text" name = "char" size = "6"> <input type = "submit" name = "submit" value = "Search!" /> </form>'; It runs but doesn't return any ASCII entities. HELP!! Max
  11. Hi there I am using MySQL in "phpmyadmin.eu.ionos.host" and want to change a column to 'UNIQUE' as I don't want to accidentally fill the table with repeat data using an erroneous php loop and each image must be unique. The table is: 2 Image char(200) utf8_unicode_ci SQL won't let me change the column to 'UNIQUE' as it says that there is a duplicate column 'Image'. The phpmyadmin SQL seems to be trying to add another column, which is what I dont want. 1and1 have very recently changed their software and there seem to be a lot of gremlins in it. Any comments?? Regards Max
  12. Hi everyone Nowadays, when one calls a website on a mobile device, the server will load an alternative web page. E.g. if one calls www.examplewebsite.com on a mobile, then the page that one will see is something like www.m.examplewebsite.com. How does HTML identify the type of device, beit PC, laptop, iphone, tablet etc. ?? I have read the w3schools pages on the subject and followed their advice, but am interested in at least modifying my CSS specifically ofor a mobile device. Thanks in anticipation. Max
  13. Thanks, dsonesuk. I will work on your advice. The FastStone looks really good - I will probably just use that in future instead of MS Paint. I think the imagick is a bit beyond my powers of understanding, to be honest. Thanks Max
×
×
  • Create New...