Can I log in with other user's account?
277
login
does exactly what the name says, it logs a user in and sets up the environment, but the login command is not intended for switching to another user account on the command line. For this you would either use su username
to switch to another account, or sudo -u username
to run just a single command as another user.
Related videos on Youtube
Author by
user3319710
Updated on September 18, 2022Comments
-
user3319710 almost 2 years
we are using jsoup - excellent thanks.
We may get HTML files with no http-equiv meta tag and the charset may be other than UTF-8. How is it best to handle this please. We can have a list of encodings and try them but I am not sure how to tell programatically if something is wrong. Would jsoup throw an IOException?
-
user3319710 over 10 yearsThanks. Reading : joelonsoftware.com/articles/Unicode.html has alos helped.
-
user3319710 over 10 yearsalso helped. Now I undersatnd better charset versus encoding. I have all settings set to UTF-8. I put some Chinese
-
user3319710 over 10 yearssorry for the garble. Googling brings up the suggestion that jsoup does not support Chinese and Japanese character sets. Is that the case please. All else seems to work fine under UTF-8.
-
ollo over 10 yearsI've not tested jsoup with asian character sets, but does it fail too, if you use java's method to handle strings and then parse it with jsoup.