How can I enforce so Notepad++ uses UTF-8 every time I create a new file?
Solution 1
Go to
Settings -> Preferences -> New Document/ Open Save Directory
and then in
New Document -> Encoding
check UTF8 without BOM
You might also want to tick "Apply to opened ANSI files":
Solution 2
Just bumping once again here at superuser
Step 1: Settings -> Preferences -> New Document ->[Encodng] UTF-8 without BOM (check Apply to opened ANSI files)
but any how it hadn't solved mine , i searched out and found that its a bug!
Notepad++ v6.4.5 bug fixes:
1.Fix a crash issue while there's missing tag in functionList.xml.
2.Fix UTF-8 (w/o BOM) detection bug.
Step 2: That's all have an update to >= v6.4.5 and follow Step 1
User5590
Updated on September 18, 2022Comments
-
User5590 over 1 year
I have a Sharepoint site running on Azure virtual Machine. Now i want to authenticate my sharepoint site with Azure AD users.
For this i have followed below link, but getting error after login.
Using Microsoft Azure Active Directory for SharePoint 2013 authentication
I have implemented as given on reference link, but still facing error. When i access my url from browser, it will ask me through which you want to logon.
Then on selection of ACS Provider, it will redirect me to office365 login. After i submit my credentials, it will redirect me to
https://testvm.cloudapp.net/_trust/
and got error. So i checked in sharepoint log and found below error.
Cannot find site lookup info for request Uri urn:sharepoint:spvms.
SPAudienceValidator: Audience uri 'urn:sharepoint:spvms is not valid for the context.
Getting Error Message for Exception Microsoft.IdentityModel.Tokens.FailedAuthenticationException: The Audience URI could not be validated.
SPSaml11SecurityTokenHandler: Audience validation failed for request 'https://testvm.cloudapp.net/_trust/' with the following audience URIs: 'urn:sharepoint:spvms', .
Application error when access /_trust/, Error=The Audience URI could not be validated.
at Microsoft.SharePoint.IdentityModel.SPSaml11SecurityTokenHandler.ValidateConditions(SamlConditions conditions, Boolean enforceAudienceRestriction)
at Microsoft.IdentityModel.Tokens.Saml11.Saml11SecurityTokenHandler.ValidateToken(SecurityToken token)
at Microsoft.IdentityModel.Tokens.SecurityTokenHandlerCollection.ValidateToken(SecurityToken token)
at Microsoft.IdentityModel.Web.TokenReceiver.AuthenticateToken(SecurityToken token, Boolean ensureBearerToken, String endpointUri)
at Microsoft.IdentityModel.Web.WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequest request)
at Microsoft.IdentityModel.Web.WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)
at Microsoft.SharePoint.IdentityModel.SPFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs eventArgs)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)-
slotishtype almost 13 yearshey @Jonas, Do you mean use UTF-8 (without BOM) as default encoding for multiple sessions? I use notepad++ and cannot seem to replicate this behavior. Could it be a profile issue?
-
Alex K. over 8 yearsDid you manage to solve it?
-
User5590 over 8 yearsNot yet, still same error
-
-
Bad Programmer about 11 yearsThanks! This worked perfectly for me for viewing Chinese Simplified characters.
-
User5590 about 9 yearswhere should i use Get-SPTrustedIdentityTokenIssuer. Should i run it on Azure VM?
-
Kirk Evans - MSFT about 9 yearsOn the same server that SharePoint is running, unless you have set up PowerShell remoting.
-
User5590 over 8 yearsThanks @Alexander for your answer. I will check this and let you know the result