Sometimes there is a problem with adding a favorite name

on some websites that I have, when I add to favorites using the IE button, the name of the favorite, which is automatically filled in with the page title, sometimes does not get the name and does not set the URL where "/" is replaced by "-" and " : "is deleted

What is the problem? websites are Hebrew or English, encoding is utf-8 or windows-1255 ...

+3
source share
1 answer

IE favorites are just files, in particular .url files. On Windows, it is forbidden to have a file name with certain characters. This includes the characters /and :. IE replaces them -, and does not bother the user about this.

: \ / : * ? " < > |

- IE, , . , : 396 . MAX_PATH Windows - 260 . , IE - , , - ( , 50 ). , URL-. , .

. , , IE 128 ( , - , ). , 128 IE, URL .

window.external.AddFavorite() IE; , , , , MAX_PATH.

+2

Source: https://habr.com/ru/post/1742850/


All Articles